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

View File

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

View File

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