summaryrefslogtreecommitdiffstats
path: root/pages/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/home.php')
-rw-r--r--pages/home.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/home.php b/pages/home.php
index 696c0cc..9c4cf3d 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -90,7 +90,7 @@ function adToggle() {
<?php
topbar($Links);
-$showAd = ($_COOKIE['pref_showAd'] == "yes");
+$showAd = (isset($_COOKIE['pref_showAd']) AND $_COOKIE['pref_showAd'] == "yes");
$adClass = 'adHidden';
$adShow = 'Hide';
if ($showAd) {