avoid a warning on opendir

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

View File

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