avoid a warning on opendir

This commit is contained in:
Marc Delisle
2007-12-15 14:30:37 +00:00
parent cd05940c9b
commit d74b0c31e7

View File

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