Merge pull request #66 from martinhbramwell/patch-1

Declare vars before adding values to avoid PHP notice errors
This commit is contained in:
mattpass
2012-07-20 13:04:40 -07:00

View File

@@ -92,6 +92,9 @@ echo $fileAtts;
echo "</a>";
echo "</li>\n";
$lastPath="";
$fileCount=0;
$fileBytes=0;
$dirCount=0;
for ($i=0;$i<count($finalArray);$i++) {
$fileFolderName = str_replace("\\","/",$finalArray[$i]);
$type = is_dir($path.$fileFolderName) ? "folder" : "file";