diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-04-21 16:50:53 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-04-21 16:50:53 +0000 |
commit | 83ea3afb81f7f22006a1fde881ed73d155fee40f (patch) | |
tree | 88b7bc63836da2debc778e0cf8c4f4a71d6b6989 /engine | |
parent | daf22b2de91af68d5b31e7879155c5b06545be5a (diff) | |
download | elgg-83ea3afb81f7f22006a1fde881ed73d155fee40f.tar.gz elgg-83ea3afb81f7f22006a1fde881ed73d155fee40f.tar.bz2 |
Belts and braces checking on isloggedin()
git-svn-id: https://code.elgg.org/elgg/trunk@3225 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/sessions.php | 4 |
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;
|