Known bugs - 4.0.3
How to root the HTC One X
N-13 News 4.0.3
What is N-13 News?
Where can I get help?
Uploaded Image count bug & fix
Posted on 21 Aug 2009, 02:32:06
Total Posts: 1
in 3.2 there seem to be a bug where if there are no images in the upload directory, the script still says there is "1" there.
here a quick fix i did to make it work right.
open modimageuploads.mod and go to line 92 & replace
$num = count(glob("uploads/*.*"));
$dir = "uploads/";
if ($dh = opendir($dir))
while (($file = readdir($dh)) !== false)
if($file != "." && $file != "..") $num++;
just my way of saying thanks for this great script
Posted on 21 Aug 2009, 02:37:21
Total Posts: 1395
Hmm interesting. I tested this on my local server, deleted all the uploaded images and it shows as
0 images in total, 0 KB total file size
either way it's not a major problem so I wouldn't worry about it to much. I appreciate you posting a fix for it though
Network-13.com © 2013