diff --git a/theme/boost/layout/columns2.php b/theme/boost/layout/columns2.php index b4d65ddf02a2d..356c68f113ff9 100644 --- a/theme/boost/layout/columns2.php +++ b/theme/boost/layout/columns2.php @@ -26,7 +26,11 @@ user_preference_allow_ajax_update('drawer-open-nav', PARAM_ALPHA); -$navdraweropen = (get_user_preferences('drawer-open-nav', 'true') == 'true'); +if (isloggedin()) { + $navdraweropen = (get_user_preferences('drawer-open-nav', 'true') == 'true'); +} else { + $navdraweropen = false; +} $extraclasses = []; if ($navdraweropen) { $extraclasses[] = 'drawer-open-left';