diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-24 21:30:42 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-24 21:30:42 +0000 |
commit | 91a13cc33a514baf9aa5f8b31b1810c354d93beb (patch) | |
tree | ad9ec4e4a3f98dd901a3013a1e3e7220988401b7 /engine/lib/entities.php | |
parent | a7990d0195dfcdb205ecb45c373a1ba6d44d67aa (diff) | |
download | elgg-91a13cc33a514baf9aa5f8b31b1810c354d93beb.tar.gz elgg-91a13cc33a514baf9aa5f8b31b1810c354d93beb.tar.bz2 |
Fixing a bug resulting from get_loggedin_user() return FALSE.
This bug could throw a fatal error to non-loggedin users.
git-svn-id: http://code.elgg.org/elgg/trunk@3707 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index df8cc2f7f..ef99f764a 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -2665,7 +2665,7 @@ function can_edit_entity($entity_guid, $user_guid = 0) { $return = false; // Test user if possible - should default to false unless a plugin hook says otherwise - if (!is_null($user)) { + if ($user) { if ($entity->getOwner() == $user->getGUID()) { $return = true; } |