From d74b0c31e739f6598eae074079959e184a4752f4 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 15 Dec 2007 14:30:37 +0000 Subject: [PATCH] avoid a warning on opendir --- libraries/file_listing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 .= '/';