From e3528b3cda4b4063c0fec894bf838390d7868645 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Fri, 10 May 2013 15:56:33 -0700 Subject: BUGFIX: Cookie dologin issue. --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'index.php') 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; -- cgit v1.2.3