aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-17 17:33:04 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-17 17:33:04 +0000
commitc1b8868b715fe758d5469d56e7290ba5647e9975 (patch)
tree3c354ba6d8ff695b29a1fb0691908bed7f839528
parent599e8cce8bcca81b87554da1a43ca4f05d8aa92e (diff)
downloadelgg-c1b8868b715fe758d5469d56e7290ba5647e9975.tar.gz
elgg-c1b8868b715fe758d5469d56e7290ba5647e9975.tar.bz2
isloggedin() doesn't touch the session if we're not fully installed yet.
git-svn-id: https://code.elgg.org/elgg/trunk@954 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/sessions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index 57a2e8743..ae7bd8ac5 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -20,6 +20,7 @@
*/
function isloggedin() {
+ if (!is_installed()) return false;
if ((isset($_SESSION['guid'])) && ($_SESSION['guid'] > 0))
return true;
return false;