From 71a87cf1448482195d9cae53f8d28cf3f66f3ba9 Mon Sep 17 00:00:00 2001 From: vogelor <vogelor@ispconfig3> Date: Fri, 12 Dec 2008 08:23:58 +0000 Subject: [PATCH] fixed a bug in deleting old log --- server/cron_daily.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/cron_daily.php b/server/cron_daily.php index 7aa6af20e..1d615daff 100644 --- a/server/cron_daily.php +++ b/server/cron_daily.php @@ -130,12 +130,12 @@ foreach($records as $rec) { ####################################################################################################### //* Keep 7 days in sys_log $tstamp = time() - (60*60*24*7); -$sql = "DELETE FROM sys_log WHERE tstamp < $tstamp AND server_id = ".$conf["server_id"]; +$sql = "DELETE FROM sys_log WHERE tstamp < $tstamp AND server_id != 0"; $app->db->query($sql); //* Keep 7 days in sys_datalog $tstamp = time() - (60*60*24*7); -$sql = "DELETE FROM sys_datalog WHERE tstamp < $tstamp AND server_id = ".$conf["server_id"]; +$sql = "DELETE FROM sys_datalog WHERE tstamp < $tstamp AND server_id != 0"; $app->db->query($sql); -- GitLab