From 824b8f7d9f47cee68fcd9f8ad62772a9f743e629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Loguercio?= Date: Thu, 31 Mar 2016 11:16:50 -0500 Subject: [PATCH] Minor code validation - Refs #8142 --- user_portal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_portal.php b/user_portal.php index 657ab16464..796d565c1a 100755 --- a/user_portal.php +++ b/user_portal.php @@ -194,7 +194,7 @@ if (empty($courseAndSessions['html']) && !isset($_GET['history'])) { $controller->tpl->assign('content', $courseAndSessions['html']); if (api_get_setting('allow_browser_sniffer') == 'true') { - if ($_SESSION['sniff_navigator'] != "checked") { + if (isset($_SESSION['sniff_navigator']) && $_SESSION['sniff_navigator'] != "checked") { $controller->tpl->assign('show_sniff', 1); } else { $controller->tpl->assign('show_sniff', 0);