Update index.php

Fixed cell css for events that miss syslog severity (old format)
This commit is contained in:
Andre Lorbach 2023-02-03 16:11:56 +01:00 committed by GitHub
parent d1e501b1f4
commit c2345c5a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,9 +371,9 @@ if ( isset($content['Sources'][$currentSourceID]) )
// --- Set CSS Class
if ( $counter % 2 == 0 )
$content['syslogmessages'][$counter]['cssclass'] = "line1_".$logArray[SYSLOG_SEVERITY];
$content['syslogmessages'][$counter]['cssclass'] = "line1" . (isset($logArray[SYSLOG_SEVERITY]) && strlen($logArray[SYSLOG_SEVERITY]) > 0 ? "_" . $logArray[SYSLOG_SEVERITY] : "");
else
$content['syslogmessages'][$counter]['cssclass'] = "line2_".$logArray[SYSLOG_SEVERITY];
$content['syslogmessages'][$counter]['cssclass'] = "line2" . (isset($logArray[SYSLOG_SEVERITY]) && strlen($logArray[SYSLOG_SEVERITY]) > 0 ? "_" . $logArray[SYSLOG_SEVERITY] : "");
// ---
// --- Copy other needed properties