Permalink
Browse files

MDL-27825 Improved check of themedesignermode to prevent errors if it…

… isn't set
  • Loading branch information...
1 parent 6911fa1 commit e625feaf0bccf4f00894bbc1adccdcb098290b5c Sam Hemelryk committed Jun 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 theme/index.php
View
4 theme/index.php
@@ -153,7 +153,7 @@
//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;
@@ -194,4 +194,4 @@
echo html_writer::table($table);
-echo $OUTPUT->footer();
+echo $OUTPUT->footer();

0 comments on commit e625fea

Please sign in to comment.