aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/sessions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index c4f2a6301..3e682976c 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -130,8 +130,8 @@
if (!is_installed()) return false;
$user = get_loggedin_user();
-
- if ((isset($user)) && ($user->guid > 0))
+
+ if ((isset($user)) && ($user instanceof ElggUser) && ($user->guid > 0))
return true;
return false;