aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 18:29:36 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 18:29:36 +0000
commit5af0adf1ccc660d4c3d0fb0f107d83a511b7d989 (patch)
tree1de4df8e329c285f7636801b0495742cb31b7214
parentea76cce19760707eb3b7c7ba76c81b8f813fe690 (diff)
downloadelgg-5af0adf1ccc660d4c3d0fb0f107d83a511b7d989.tar.gz
elgg-5af0adf1ccc660d4c3d0fb0f107d83a511b7d989.tar.bz2
Access fix
git-svn-id: https://code.elgg.org/elgg/trunk@3085 36083f99-b078-4883-b0ff-0f9b5a30f544
-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 38bfd13dc..93f12b057 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1285,6 +1285,9 @@
if (trigger_elgg_event('update',$entity->type,$entity)) {
$ret = update_data("UPDATE {$CONFIG->dbprefix}entities set owner_guid='$owner_guid', access_id='$access_id', container_guid='$container_guid', time_updated='$time' WHERE guid=$guid");
+ if ($entity instanceof ElggObject)
+ update_river_access_by_object($guid,$access_id);
+
// If memcache is available then delete this entry from the cache
static $newentity_cache;
if ((!$newentity_cache) && (is_memcache_available()))
@@ -1294,9 +1297,6 @@
// Handle cases where there was no error BUT no rows were updated!
if ($ret===false)
return false;
-
- if ($entity instanceof ElggObject)
- update_river_access_by_object($entity->guid,$entity->access_id);
return true;
}