Skip to content

Commit

Permalink
fixes #44 - warning when specials menu is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Philio committed Feb 7, 2017
1 parent 21ab691 commit cc5d040
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/themecontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public function hideMenus($menus) {
unset($mbMenu->data['comments']);

$mbSpecials = $menu->get_block('mbSpecials');
unset($mbSpecials->data['calendar']);
if (!is_null($mbSpecials)) {
unset($mbSpecials->data['calendar']);
}
}

}

0 comments on commit cc5d040

Please sign in to comment.