From 6d5281b19af709180370372879c55a1da0dbb932 Mon Sep 17 00:00:00 2001 From: secretr Date: Wed, 27 Apr 2011 07:41:31 +0000 Subject: [PATCH] File handler php notice --- e107_handlers/file_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }