Fix "Undefined index: mobile" warnings

master
shelvacu 4 years ago
parent b36b4080f5
commit 0e548c653a

@ -33,7 +33,7 @@ session_start(); // stick some cookies in it
// renew session cookie
setcookie(session_name(), session_id(), time() + $session_length, "/", false, false);
if ($_SESSION['mobile'] === TRUE) {
if (isset($_SESSION['mobile']) && $_SESSION['mobile'] === TRUE) {
header("Content-Security-Policy: "
. "default-src 'self';"
. "object-src 'none'; "

Loading…
Cancel
Save