diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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;
|