Check if directory exists

This commit is contained in:
Michal Čihař
2011-05-05 09:08:37 +02:00
parent 56fc953b57
commit ece21fbe9a

View File

@@ -339,6 +339,11 @@ function PMA_langList()
/* We can always speak English */
$result = array('en' => PMA_langDetails('en'));
/* Check for existing directory */
if (!is_dir($GLOBALS['lang_path'])) {
return $result;
}
/* Open the directory */
$handle = @opendir($GLOBALS['lang_path']);
/* This can happen if the kit is English-only */