diff --git a/user_portal.php b/user_portal.php index f53fe5c1dd..cfc8376f57 100755 --- a/user_portal.php +++ b/user_portal.php @@ -197,10 +197,9 @@ if (empty($template)) { $controller->tpl->assign('items', $courseAndSessions['items']); $userPortalTemplate = $controller->tpl->get_template('user_portal/'.$template); $content = $controller->tpl->fetch($userPortalTemplate); + $controller->tpl->assign('content', $content); } -$controller->tpl->assign('content', $content); - if (api_get_setting('allow_browser_sniffer') == 'true') { if (isset($_SESSION['sniff_navigator']) && $_SESSION['sniff_navigator'] != "checked") { $controller->tpl->assign('show_sniff', 1);