diff --git a/e107_handlers/file_class.php b/e107_handlers/file_class.php index 7b7dc6933..4bdd61db5 100644 --- a/e107_handlers/file_class.php +++ b/e107_handlers/file_class.php @@ -144,7 +144,7 @@ class e_file $path = substr($path, 0, -1); } - if(!$handle = opendir($path)) + if(!is_dir($path) || !$handle = opendir($path)) { return $ret; }