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