diff --git a/templates/cassiopeia/index.php b/templates/cassiopeia/index.php index 59376c9c7ee87..8c89032ba609c 100644 --- a/templates/cassiopeia/index.php +++ b/templates/cassiopeia/index.php @@ -26,8 +26,7 @@ $itemid = $app->input->getCmd('Itemid', ''); $sitename = htmlspecialchars($app->get('sitename'), ENT_QUOTES, 'UTF-8'); $menu = $app->getMenu()->getActive(); -$pageclass = $menu->getParams()->get('pageclass_sfx'); - +$pageclass = $menu !== null ? $menu->getParams()->get('pageclass_sfx', '') : ''; // Enable assets $wa->usePreset('template.cassiopeia.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')) ->useStyle('template.active.language')