From 1e26a51d0867dfd59f0378669a8bbbddc05caa42 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 22 Dec 2024 15:35:50 +0100 Subject: [PATCH] ErrorLog: use DELETE FROM instead of TRUNCATE --- models/ErrorLog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/ErrorLog.php b/models/ErrorLog.php index 0f13d5b..979073b 100644 --- a/models/ErrorLog.php +++ b/models/ErrorLog.php @@ -24,7 +24,7 @@ class ErrorLog public static function flush() { - return Registry::get('db')->query('TRUNCATE log_errors'); + return Registry::get('db')->query('DELETE FROM log_errors'); } public static function getCount()