|
@@ -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);
|