Compare commits

...

1 Commits

Author SHA1 Message Date
shelvacu 0e548c653a Fix "Undefined index: mobile" warnings 4 years ago

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