From 6588ff3eb201cb9d9834323e670771daa87696c0 Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 8 Jan 2009 18:26:02 +0000 Subject: 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 --- engine/lib/system_log.php | 8 +++----- 1 file 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; -- cgit v1.2.3