aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-21 07:29:46 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-21 07:29:46 -0400
commit8133f364fc689e5068b1c4ca70e7cf4057a5694c (patch)
tree34cc736a53ccd614a915df783783c3ed1d1ed045 /engine
parent2f2c710cb6027557f5394d34e99b42b4289b5c71 (diff)
downloadelgg-8133f364fc689e5068b1c4ca70e7cf4057a5694c.tar.gz
elgg-8133f364fc689e5068b1c4ca70e7cf4057a5694c.tar.bz2
fixed access of non-object property in entities lib
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index f1352ba8d..1f6434533 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -530,12 +530,12 @@ $container_guid = 0) {
$container_guid = $owner_guid;
}
- $user = elgg_get_logged_in_user_entity();
- if (!can_write_to_container($user->guid, $owner_guid, $type, $subtype)) {
+ $user_guid = elgg_get_logged_in_user_guid();
+ if (!can_write_to_container($user_guid, $owner_guid, $type, $subtype)) {
return false;
}
if ($owner_guid != $container_guid) {
- if (!can_write_to_container($user->guid, $container_guid, $type, $subtype)) {
+ if (!can_write_to_container($user_guid, $container_guid, $type, $subtype)) {
return false;
}
}