diff --git a/.github/workflows/plugin-ci-workflow.yml b/.github/workflows/plugin-ci-workflow.yml index 87991cc..438da27 100644 --- a/.github/workflows/plugin-ci-workflow.yml +++ b/.github/workflows/plugin-ci-workflow.yml @@ -86,7 +86,7 @@ jobs: run: sudo apt-get update - name: Install System Dependencies - run: sudo apt-get install -y apache2 snmp snmpd rrdtool fping libapache2-mod-php${{ matrix.php }} + run: sudo apt-get install -y apache2 snmp snmpd rrdtool fping - name: Start SNMPD Agent and Test run: | @@ -222,4 +222,3 @@ jobs: exit 1 fi - diff --git a/.gitignore b/.gitignore index 3dd84d9..d20187c 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ locales/po/*.mo +.omc/ diff --git a/audit.php b/audit.php index dffed41..b6460d6 100644 --- a/audit.php +++ b/audit.php @@ -1,4 +1,6 @@ $content) { + $nattribs = []; + + foreach (($attribs ?? []) as $field => $content) { $nattribs[$field] = $content; } ksort($nattribs); @@ -91,10 +94,11 @@ } $i = 0; + if (cacti_sizeof($nattribs)) { - foreach($nattribs as $field => $content) { + foreach ($nattribs as $field => $content) { if ($i % $columns == 0) { - $output .= ($output != '' ? '':'') . '
| - + | - '> + '> | - + | - + | - + | - - - - + + + + |