diff --git a/src/index.php b/src/index.php index 596139e..8c006d6 100644 --- a/src/index.php +++ b/src/index.php @@ -201,16 +201,19 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c // --- Init the fields we need foreach($content['Columns'] as $mycolkey) { - $content['fields'][$mycolkey]['FieldID'] = $mycolkey; - $content['fields'][$mycolkey]['FieldCaption'] = $content[ $fields[$mycolkey]['FieldCaptionID'] ]; - $content['fields'][$mycolkey]['FieldType'] = $fields[$mycolkey]['FieldType']; - $content['fields'][$mycolkey]['FieldSortable'] = $stream->IsPropertySortable($mycolkey); // $fields[$mycolkey]['Sortable']; - $content['fields'][$mycolkey]['DefaultWidth'] = $fields[$mycolkey]['DefaultWidth']; + if ( isset($fields[$mycolkey]) ) + { + $content['fields'][$mycolkey]['FieldID'] = $mycolkey; + $content['fields'][$mycolkey]['FieldCaption'] = $content[ $fields[$mycolkey]['FieldCaptionID'] ]; + $content['fields'][$mycolkey]['FieldType'] = $fields[$mycolkey]['FieldType']; + $content['fields'][$mycolkey]['FieldSortable'] = $stream->IsPropertySortable($mycolkey); // $fields[$mycolkey]['Sortable']; + $content['fields'][$mycolkey]['DefaultWidth'] = $fields[$mycolkey]['DefaultWidth']; - if ( $mycolkey == SYSLOG_MESSAGE ) - $content['fields'][$mycolkey]['colspan'] = ''; //' colspan="2" '; - else - $content['fields'][$mycolkey]['colspan'] = ''; + if ( $mycolkey == SYSLOG_MESSAGE ) + $content['fields'][$mycolkey]['colspan'] = ''; //' colspan="2" '; + else + $content['fields'][$mycolkey]['colspan'] = ''; + } } // --- @@ -291,7 +294,7 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c // --- Now we populate the values array! foreach($content['Columns'] as $mycolkey) { - if ( isset($logArray[$mycolkey]) ) + if ( isset($fields[$mycolkey]) && isset($logArray[$mycolkey]) ) { // Set defaults $content['syslogmessages'][$counter]['values'][$mycolkey]['FieldColumn'] = $mycolkey; diff --git a/src/templates/index.html b/src/templates/index.html index 573f244..27a3cfc 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -87,11 +87,11 @@ -
Recent syslog messages | +Recent syslog messages |
+ + | Debug | + - -
Debug | - + ++ + + + {FieldCaption} + + + + | + +- - - - {FieldCaption} - - - - | - - + +
{ZAEHLER} | + - -|
{ZAEHLER} | - - - - -
-
-
- |
{popupcaption} | |
{detailfieldtitle} | +{detailfieldvalue} | +
+ + | Pager: | +
+
+ |
+
+
+
+ |
+
+
+ {mypagenumber} | + + +
+
+ |
+
+
+
+ |