From 50bf99212cba53eaba35eaf8ced1aa88bbdd45a9 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 9 Apr 2008 10:09:45 +0000 Subject: Fixed some bugs including a load order patch from Rolando, and an update issue git-svn-id: https://code.elgg.org/elgg/trunk@426 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/entities.php') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index a31da1c88..788a559d8 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -587,7 +587,7 @@ if ($entity->canEdit()) { if (trigger_event('update',$entity->type,$entity)) { - return update_data("UPDATE {$CONFIG->dbprefix}entities set owner_guid='$owner_guid', access_id='$access_id', time_updated='$time' WHERE guid=$guid and (access_id in {$access} or (access_id = 0 and owner_guid = {$_SESSION['id']}))"); + return update_data("UPDATE {$CONFIG->dbprefix}entities set owner_guid='$owner_guid', access_id='$access_id', time_updated='$time' WHERE guid=$guid"); } } } -- cgit v1.2.3