summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-05-10 15:56:33 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-05-10 15:56:33 -0700
commite3528b3cda4b4063c0fec894bf838390d7868645 (patch)
treec999dfc17e7abb2352133edeb3cdf63793a8690b /index.php
parent38ab135eb26e75fb165160884b6271f64c53494f (diff)
downloadpathery-e3528b3cda4b4063c0fec894bf838390d7868645.tar.xz
BUGFIX: Cookie dologin issue.
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;