From cb99089061c12143dc7c4289c131c90ce9066ce4 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 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 .= '/';