From 377fe3adaab82bda7a6e1ced70d5f5273d6d44d3 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 16 Oct 2014 10:30:47 +0200 Subject: Don't use EventLog during update if db is too old --- inc/eventlog.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/eventlog.inc.php') 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()); } } -- cgit v1.2.3-55-g7522