make sure the array key exists
[php-utility-classes.git] / classes / rrdstat.php-class
index 1ed450451ec7d9d2e1758a9ecba3915685928584..9743e7a55b7c1ca0b1b328c091183d6c69c44838 100644 (file)
@@ -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;