From e67037744edbb115b88b23f3ab6926f77244ca9f Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Wed, 29 Dec 2021 23:26:17 +0100 Subject: [PATCH] make sure the array key exists --- classes/rrdstat.php-class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/rrdstat.php-class b/classes/rrdstat.php-class index 1ed4504..9743e7a 100644 --- a/classes/rrdstat.php-class +++ b/classes/rrdstat.php-class @@ -496,7 +496,7 @@ class rrdstat { // assemble configuration $gconf = (array)$extra; - if (!is_null($sub) && is_array($this->config_raw['graph.'.$sub])) { + if (!is_null($sub) && array_key_exists('graph.'.$sub, $this->config_raw) && is_array($this->config_raw['graph.'.$sub])) { $gconf = $gconf + $this->config_raw['graph.'.$sub]; } $gconf = $gconf + (array)$this->config_graph; -- 2.43.0