@@ -276,15 +276,17 @@ function syslog_check_upgrade() {
276276 'default ' => '' ,
277277 'after ' => 'id ' )
278278 );
279+ }
279280
280- if (db_column_exists ('syslog_incoming ' , 'date ' )) {
281- db_execute ("ALTER TABLE syslog_incoming
282- DROP COLUMN date,
283- CHANGE COLUMN `time` logtime timestamp default '0000-00-00'; " );
284- }
281+ if (db_column_exists ('syslog_incoming ' , 'date ' )) {
282+ db_execute ("ALTER TABLE syslog_incoming
283+ DROP COLUMN date,
284+ CHANGE COLUMN `time` logtime timestamp default '0000-00-00'; " );
285285 }
286286
287- $ alerts = syslog_db_fetch_assoc ('SELECT * FROM syslog_alert WHERE hash IS NULL OR hash = "" ' );
287+ $ alerts = syslog_db_fetch_assoc ('SELECT *
288+ FROM syslog_alert
289+ WHERE hash IS NULL OR hash = "" ' );
288290
289291 if (cacti_sizeof ($ alerts )) {
290292 foreach ($ alerts as $ a ) {
@@ -296,7 +298,9 @@ function syslog_check_upgrade() {
296298 }
297299 }
298300
299- $ removes = syslog_db_fetch_assoc ('SELECT * FROM syslog_remove WHERE hash IS NULL OR hash = "" ' );
301+ $ removes = syslog_db_fetch_assoc ('SELECT *
302+ FROM syslog_remove
303+ WHERE hash IS NULL OR hash = "" ' );
300304
301305 if (cacti_sizeof ($ removes )) {
302306 foreach ($ removes as $ r ) {
@@ -308,7 +312,9 @@ function syslog_check_upgrade() {
308312 }
309313 }
310314
311- $ reports = syslog_db_fetch_assoc ('SELECT * FROM syslog_reports WHERE hash IS NULL OR hash = "" ' );
315+ $ reports = syslog_db_fetch_assoc ('SELECT *
316+ FROM syslog_reports
317+ WHERE hash IS NULL OR hash = "" ' );
312318
313319 if (cacti_sizeof ($ reports )) {
314320 foreach ($ reports as $ r ) {
0 commit comments