diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-08 18:26:02 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-08 18:26:02 +0000 |
commit | 6588ff3eb201cb9d9834323e670771daa87696c0 (patch) | |
tree | 92e93262bca6307641ad4aae7c158edc445f43b0 /engine | |
parent | 0064b0baec649200797245381b0905be3a381183 (diff) | |
download | elgg-6588ff3eb201cb9d9834323e670771daa87696c0.tar.gz elgg-6588ff3eb201cb9d9834323e670771daa87696c0.tar.bz2 |
Closes #588: Don't remember adding this check... but anyway, double entries regression fixed.
git-svn-id: https://code.elgg.org/elgg/trunk@2553 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/system_log.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engine/lib/system_log.php b/engine/lib/system_log.php index c6a91364f..1614f053d 100644 --- a/engine/lib/system_log.php +++ b/engine/lib/system_log.php @@ -220,11 +220,9 @@ // Create log if we haven't already created it
if (!isset($logcache[$time][$object_id][$event])) { - if (insert_data("INSERT DELAYED into {$CONFIG->dbprefix}system_log (object_id, object_class, object_type, object_subtype, event, performed_by_guid, owner_guid, access_id, enabled, time_created) VALUES ('$object_id','$object_class','$object_type', '$object_subtype', '$event',$performed_by, $owner_guid, $access_id, '$enabled', '$time')")) {
- $logcache[$time][$object_id][$event] = true;
- return true;
- }
- return false;
+ insert_data("INSERT DELAYED into {$CONFIG->dbprefix}system_log (object_id, object_class, object_type, object_subtype, event, performed_by_guid, owner_guid, access_id, enabled, time_created) VALUES ('$object_id','$object_class','$object_type', '$object_subtype', '$event',$performed_by, $owner_guid, $access_id, '$enabled', '$time')");
+ + $logcache[$time][$object_id][$event] = true;
}
return true;
|