Update daily.php

This commit is contained in:
Neil Lathwood
2014-10-11 09:32:37 +01:00
parent cdf199a2dd
commit 6ccc951480

View File

@@ -17,7 +17,7 @@ if ( $options['f'] === 'update') { echo $config['update']; }
if ( $options['f'] === 'syslog') {
if ( is_numeric($config['syslog_purge'])) {
$rows = dbFetchRow("SELECT MIN(seq) FROM syslog");
while($loop == 1) {
while(TRUE) {
$limit = dbFetchRow("SELECT seq FROM syslog WHERE seq >= ? ORDER BY seq LIMIT 1000,1", array($rows));
if(empty($limit)) {
break;