diff --git a/ChangeLog b/ChangeLog index ce955d70a..b39e9949b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $Source$ TODO: - Update docs - Add conversion code to the docs - add charset checks to pmadb validation code + * main.php: bug #991887. 2004-07-15 Michal Čihař * tbl_properties_export.php: Fix export of queries with empty WHERE clause diff --git a/main.php b/main.php index bc730bef0..ff0dad4b4 100644 --- a/main.php +++ b/main.php @@ -583,7 +583,7 @@ echo "\n"; // added by Michael Keck // ThemeManager if available -if (count($available_themes_choices)>1) { +if (isset($available_themes_choices) && $available_themes_choices > 1) { $theme_selected = FALSE; $theme_preview_path= './themes.php'; $theme_preview_href = '