From d41745ceda4e9846c8db87dfbd8fc2a06a728ceb Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Fri, 2 Dec 2022 12:13:49 +0000 Subject: [PATCH] Bugfix of bugfix ClearSqlCache TIMESTAMPDIFF --- www/lib/class.erpapi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/lib/class.erpapi.php b/www/lib/class.erpapi.php index 88460bb0..9c07f3cd 100644 --- a/www/lib/class.erpapi.php +++ b/www/lib/class.erpapi.php @@ -7415,7 +7415,7 @@ function ClearSqlCache($shortcode, $seconds = 0) if($seconds > 0) { $this->app->DB->Delete( sprintf( - "DELETE FROM sqlcache WHERE shortcode = 'artikel' AND TIMESTAMPDIFF(SECOND,zeitstempel, NOW()) > %d", + "DELETE FROM sqlcache WHERE shortcode = '%s' AND TIMESTAMPDIFF(SECOND,zeitstempel, NOW()) > %d", $this->app->DB->real_escape_string($shortcode), $seconds ) );