There's no point in printing the notice - if there's no directory

there's no files ... pretty simple.
This commit is contained in:
moodler
2003-08-17 14:14:12 +00:00
parent a33c4ae8c2
commit 487c1711fe
+1 -4
View File
@@ -1063,11 +1063,8 @@ function get_directory_list($rootdir, $excludefile="", $descend=true) {
/// If excludefile is defined, then that file/directory is ignored
$dirs = array();
$dir = opendir($rootdir);
if (!$dir) {
notify("Error: unable to read this directory! : $rootdir");
if (!$dir = opendir($rootdir)) {
return $dirs;
}