From ad01f23ccef99cf2fa5712ed55d7fb94447c9004 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Thu, 15 Sep 2016 20:50:17 +0200 Subject: [PATCH] ignore some warnings --- include/classes/rrdstat.php-class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/classes/rrdstat.php-class b/include/classes/rrdstat.php-class index ce334e0..1443ec6 100644 --- a/include/classes/rrdstat.php-class +++ b/include/classes/rrdstat.php-class @@ -974,7 +974,7 @@ class rrdstat { else { $sURL_add = '&sub=%s'; } $default_num_cols = $GLOBALS['ua']->isMobile()?1:2; - $num_cols = is_numeric($pconf['num_rows'])?$pconf['num_rows']:$default_num_cols; + $num_cols = is_numeric(@$pconf['num_rows'])?$pconf['num_rows']:$default_num_cols; $num_rows = ceil(count($stats)/$num_cols); $out .= ''."\n"; @@ -1205,7 +1205,7 @@ class rrdstat { foreach ($snames as $iname) { $newstat = array('name'=>$iname); $sfiles[] = isset($this->config_all[$iname]['file'])?$this->config_all[$iname]['file']:$iname.'.rrd'; - if (is_array($this->config_all[$iname])) { + if (is_array(@$this->config_all[$iname])) { foreach ($this->config_all[$iname] as $key=>$val) { if (substr($key, 0, 5) == 'page.') { $newstat['sub'][] = substr($key, 5); } } -- 2.35.3