diff --git a/framework/helper.class.php b/framework/helper.class.php index 3ad3cd4499..4117b34618 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -400,7 +400,7 @@ class helper $files = array(); $dir = realpath($dir); if(is_dir($dir)) $files = glob($dir . DIRECTORY_SEPARATOR . '*' . $pattern); - return $files; + return empty($files) ? array() : $files; } /**