Do not attempt to sort themes when themes are disabled (bug #1243883).

This commit is contained in:
Michal Čihař
2005-07-24 12:07:21 +00:00
parent d67f568212
commit f6f6df1037
2 changed files with 4 additions and 3 deletions

View File

@@ -75,10 +75,9 @@ if ($PMA_ThemeAvailable == TRUE) { // themeManager is available
} // end get themes
} // end check for themes directory
closedir($handleThemes);
asort($available_themes_choices);
} // end themeManger
asort($available_themes_choices);
// Allow different theme per server
$theme_cookie_name = 'pma_theme';
if ($GLOBALS['cfg']['ThemePerServer']) {