Fix some ErrorExceptions (#14241)

* Fix some ErrorExceptions

* Use Config::get default value

Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
Jellyfrog
2022-08-25 10:03:06 +02:00
committed by GitHub
parent a0b8b09f97
commit 835eac1233
5 changed files with 8 additions and 6 deletions

View File

@@ -74,7 +74,7 @@ if ($_GET['previous']) {
$rrd_options .= " COMMENT:'\\n'";
foreach ($rrd_list as $rrd) {
foreach ($rrd_list ?? [] as $rrd) {
if (! Config::get("graph_colours.$colours_in.$iter") || ! Config::get("graph_colours.$colours_out.$iter")) {
$iter = 0;
}