Add class filter + phpstan issue (#6890)

* return back old code becauese of phpstan

* add class
This commit is contained in:
Petr Macek authored and GitHub committed 2026-03-27 07:54:21 -04:00
1 parent de01c8e4ef
commit 678039bec8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -838,7 +838,7 @@ if ($scanned_directory['folders']) {
// return the last identified value
if ($selected_archive_index !== false) {
$last_values = $rrd_data['rra'][$selected_archive_index]['database']['row'][$calculated_index]['v'] ?? 'NaN';
$last_values = (!isset($calculated_index)) ? 'NaN' : $rrd_data['rra'][$selected_archive_index]['database']['row'][$calculated_index]['v'];
}
if (is_array($last_values)) {
+1 -1
View File
@@ -451,7 +451,7 @@ class CactiTableFilter {
}
if (isset($this->filter_array['rows'])) {
print "<form id='" . $this->form_id . "' action='" . $this->form_action . "' method='" . $this->form_method . "'>";
print "<form id='" . $this->form_id . "' action='" . $this->form_action . "' method='" . $this->form_method . "' class='cactiFilter'>";
foreach ($this->filter_array['rows'] as $index => $row) {
if ($index > 0 && !$text_appended) {