mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-23 03:27:02 +09:00
Add class filter + phpstan issue (#6890)
* return back old code becauese of phpstan * add class
This commit is contained in:
1 parent
de01c8e4ef
commit
678039bec8
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user