aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/system_log.php3
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')");
}
}