diff --git a/lib/util/support.inc.php b/lib/util/support.inc.php index 7e8b4a2..50c12b5 100644 --- a/lib/util/support.inc.php +++ b/lib/util/support.inc.php @@ -737,6 +737,10 @@ class SupportUtil private function get_index_contents($title, $path, $relative = true) { + if (!is_dir($path)) + { + return ''; + } $contents = array(); $dh = opendir($path); while (($filename = readdir($dh)) !== false)