Warning: opendir(path/to/dir): failed to open dir: No such file or directory
Check if folder exists
This commit is contained in:
parent
f9174bd807
commit
014d9c0665
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ $currentdir = GALLERY_ROOT . $thumbdir;
|
||||||
//-----------------------
|
//-----------------------
|
||||||
$files = array();
|
$files = array();
|
||||||
$dirs = array();
|
$dirs = array();
|
||||||
if ($handle = opendir($currentdir))
|
if (is_directory($currentdir) && $handle = opendir($currentdir))
|
||||||
{
|
{
|
||||||
while (false !== ($file = readdir($handle)))
|
while (false !== ($file = readdir($handle)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue