projects
/
php-utility-classes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0ffe81c
)
make sure the array key exists
author
Robert Kaiser
<kairo@kairo.at>
Wed, 29 Dec 2021 22:26:17 +0000
(23:26 +0100)
committer
Robert Kaiser
<kairo@kairo.at>
Wed, 29 Dec 2021 22:27:40 +0000
(23:27 +0100)
classes/rrdstat.php-class
patch
|
blob
|
blame
|
history
diff --git
a/classes/rrdstat.php-class
b/classes/rrdstat.php-class
index 1ed450451ec7d9d2e1758a9ecba3915685928584..9743e7a55b7c1ca0b1b328c091183d6c69c44838 100644
(file)
--- 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;