File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 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 )) {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments