summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.php b/index.php
index 43a26d6..63b23cf 100644
--- a/index.php
+++ b/index.php
@@ -18,9 +18,11 @@ include_once("./includes/header.php");
$accepted = isset($_SESSION['accepted']) && $_SESSION['accepted'] == 1;
//Not logged in?
-if (!$accepted)
- if (isset($_COOKIE['doLogin']) && $_COOKIE['doLogin'] == 'yes')
+if (!$accepted) {
+ if (isset($_COOKIE['doLogin']) && $_COOKIE['doLogin'] == 'yes') {
CookieLogin();
+ }
+}
if (isset($_SESSION['accepted']) AND $_SESSION['accepted'] == 1)
$accepted = true;