summaryrefslogtreecommitdiffstats
path: root/inc/eventlog.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2014-10-16 10:30:47 +0200
committerSimon Rettberg2014-10-16 10:30:47 +0200
commit377fe3adaab82bda7a6e1ced70d5f5273d6d44d3 (patch)
tree14140b1fc12a54ba70c887fd2612fb5bb3d79813 /inc/eventlog.inc.php
parenteventlog: add api, add page to view events (diff)
downloadslx-admin-377fe3adaab82bda7a6e1ced70d5f5273d6d44d3.tar.gz
slx-admin-377fe3adaab82bda7a6e1ced70d5f5273d6d44d3.tar.xz
slx-admin-377fe3adaab82bda7a6e1ced70d5f5273d6d44d3.zip
Don't use EventLog during update if db is too old
Diffstat (limited to 'inc/eventlog.inc.php')
-rw-r--r--inc/eventlog.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/eventlog.inc.php b/inc/eventlog.inc.php
index 181f8d38..093840df 100644
--- a/inc/eventlog.inc.php
+++ b/inc/eventlog.inc.php
@@ -16,6 +16,7 @@ class EventLog
public static function failure($message, $details = '')
{
self::log('failure', $message, $details);
+ Property::setLastWarningId(Database::lastInsertId());
}
public static function warning($message, $details = '')
@@ -27,7 +28,6 @@ class EventLog
public static function info($message, $details = '')
{
self::log('info', $message, $details);
- Property::setLastWarningId(Database::lastInsertId());
}
}