diff --git a/libraries/file_listing.php b/libraries/file_listing.php index 96a9bd887..bc0618a04 100644 --- a/libraries/file_listing.php +++ b/libraries/file_listing.php @@ -15,7 +15,7 @@ */ function PMA_getDirContent($dir, $expression = '') { - if ($handle = @opendir($dir)) { + if (file_exists($dir) && $handle = @opendir($dir)) { $result = array(); if (substr($dir, -1) != '/') { $dir .= '/';