From 9abec7278b8089e0bd9b6b35620173bbded08fa5 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Tue, 14 Jun 2011 15:49:33 +0800 Subject: [PATCH] MDL-27825 Improved check of themedesignermode to prevent errors if it isn't set --- theme/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theme/index.php b/theme/index.php index 9bd70a8a199..1e9c029af4a 100644 --- a/theme/index.php +++ b/theme/index.php @@ -95,7 +95,7 @@ foreach ($themes as $themename => $themedir) { //obsoleted or broken theme, just skip for now continue; } - if (!$CFG->themedesignermode && $theme->hidefromselector) { + if (empty($CFG->themedesignermode) && $theme->hidefromselector) { // The theme doesn't want to be shown in the theme selector and as theme // designer mode is switched off we will respect that decision. continue; @@ -146,4 +146,4 @@ foreach ($themes as $themename => $themedir) { echo html_writer::table($table); -echo $OUTPUT->footer(); \ No newline at end of file +echo $OUTPUT->footer();