diff --git a/inc/header.php b/inc/header.php
index 4ba9447..12e879d 100644
--- a/inc/header.php
+++ b/inc/header.php
@@ -105,7 +105,7 @@
}
if (!$_SERVER['HTTPS']) { ?> Click to switch to a secure connection (https). }
-if ($_SESSION['consent'] == "0") {
+if ((!array_key_exists('consent', $_SESSION)) || $_SESSION['consent'] == "0") {
?>
Please be aware of LCWO's privacy policy to comply with the GDPR.
@@ -123,7 +123,7 @@ function agree_policy () {
var i = document.getElementById("consent");
i.innerHTML = "Thanks!";
var request = new XMLHttpRequest();
- request.open("GET", "//lcwo.net/api/consent.php", true);
+ request.open("GET", "/api/consent.php", true);
request.send();
}