diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-29 11:42:12 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-29 11:42:12 +0000 |
commit | 46ab365925f00ccff14d82d396619b359540fcd6 (patch) | |
tree | c0404ca261274eb098cfac396900904a7b514092 /engine | |
parent | d2406ba40759046ec4bec5d1bfe4e14ab5054e23 (diff) | |
download | elgg-46ab365925f00ccff14d82d396619b359540fcd6.tar.gz elgg-46ab365925f00ccff14d82d396619b359540fcd6.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* BUGFIX: Import functionality works, removed update but no change error on update
git-svn-id: https://code.elgg.org/elgg/trunk@553 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/entities.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 87ace72d7..d71cf2170 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -657,8 +657,15 @@ 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");
- }
+ $ret = update_data("UPDATE {$CONFIG->dbprefix}entities set owner_guid='$owner_guid', access_id='$access_id', time_updated='$time' WHERE guid=$guid"); + + // Handle cases where there was no error BUT no rows were updated! + if ($ret===false) + return false; + + return true;
+ } +
} } |