diff options
Diffstat (limited to 'engine/lib/system_log.php')
-rw-r--r-- | engine/lib/system_log.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/system_log.php b/engine/lib/system_log.php index f830d6a05..fbb9f9d96 100644 --- a/engine/lib/system_log.php +++ b/engine/lib/system_log.php @@ -101,9 +101,10 @@ $object_class = $object->getClassName(); $event = sanitise_string($event); $time = time(); + $performed_by = (int)$_SESSION['guid']; // Create log - return insert_data("INSERT into {$CONFIG->dbprefix}system_log (object_id, object_class, event, time_created) VALUES ('$object_id','$object_class','$event', '$time')"); + return insert_data("INSERT into {$CONFIG->dbprefix}system_log (object_id, object_class, event, performed_by_guid, time_created) VALUES ('$object_id','$object_class','$event',$performed_by, '$time')"); } } |