diff --git a/server/cron_daily.php b/server/cron_daily.php
index 7aa6af20eef5f5c249754de1af1d473530fe9f63..1d615daffcdcc89c1b0e84e332fcb466f55f7a2f 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);