This commit is contained in:
markjcrane
2016-05-06 17:47:31 -06:00
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ else {
$htmlfilelist = ''; $htmlfilelist = '';
$dirlist = opendir($dir); $dirlist = opendir($dir);
$dir_array = array(); $dir_array = array();
while (false !== ($file = readdir($dirlist))) { if($dirlist !== false) while (false !== ($file = readdir($dirlist))) {
if ($file != "." AND $file != ".."){ if ($file != "." AND $file != ".."){
$newpath = $dir.'/'.$file; $newpath = $dir.'/'.$file;
$level = explode('/',$newpath); $level = explode('/',$newpath);

View File

@@ -49,7 +49,7 @@ else {
$htmlfilelist = ''; $htmlfilelist = '';
$dirlist = opendir($dir); $dirlist = opendir($dir);
$dir_array = array(); $dir_array = array();
while (false !== ($file = readdir($dirlist))) { if($dirlist !== false) while (false !== ($file = readdir($dirlist))) {
if ($file != "." AND $file != ".."){ if ($file != "." AND $file != ".."){
$newpath = $dir.'/'.$file; $newpath = $dir.'/'.$file;
$level = explode('/',$newpath); $level = explode('/',$newpath);