Skip to content

Commit 678039b

Browse files
authored
Add class filter + phpstan issue (#6890)
* return back old code becauese of phpstan * add class
1 parent de01c8e commit 678039b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/rrdresize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@
838838

839839
// return the last identified value
840840
if ($selected_archive_index !== false) {
841-
$last_values = $rrd_data['rra'][$selected_archive_index]['database']['row'][$calculated_index]['v'] ?? 'NaN';
841+
$last_values = (!isset($calculated_index)) ? 'NaN' : $rrd_data['rra'][$selected_archive_index]['database']['row'][$calculated_index]['v'];
842842
}
843843

844844
if (is_array($last_values)) {

lib/html_filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ private function create_filter() : string {
451451
}
452452

453453
if (isset($this->filter_array['rows'])) {
454-
print "<form id='" . $this->form_id . "' action='" . $this->form_action . "' method='" . $this->form_method . "'>";
454+
print "<form id='" . $this->form_id . "' action='" . $this->form_action . "' method='" . $this->form_method . "' class='cactiFilter'>";
455455

456456
foreach ($this->filter_array['rows'] as $index => $row) {
457457
if ($index > 0 && !$text_appended) {

0 commit comments

Comments
 (0)