aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/system_log.php3
-rw-r--r--engine/schema/mysql.sql1
2 files changed, 3 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')");
}
}
diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql
index 874720f3d..a4c4ddc61 100644
--- a/engine/schema/mysql.sql
+++ b/engine/schema/mysql.sql
@@ -242,6 +242,7 @@ CREATE TABLE `prefix_system_log` (
`object_class` varchar(128) NOT NULL,
`event` varchar(128) NOT NULL,
+ `performed_by_guid` int(11) NOT NULL,
`time_created` int(11) NOT NULL,