Merge pull request #6 from bitbybit/patch-1
Warning: opendir(path/to/dir): failed to open dir: No such file or directory
This commit is contained in:
commit
98d96dabd3
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ $currentdir = GALLERY_ROOT . $thumbdir;
|
|||
//-----------------------
|
||||
$files = array();
|
||||
$dirs = array();
|
||||
if ($handle = opendir($currentdir))
|
||||
if (is_directory($currentdir) && $handle = opendir($currentdir))
|
||||
{
|
||||
while (false !== ($file = readdir($handle)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue