diff options
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;
|