From: Robert Kaiser Date: Thu, 15 Sep 2016 18:50:17 +0000 (+0200) Subject: ignore some warnings X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=ad01f23ccef99cf2fa5712ed55d7fb94447c9004;p=php-utility-classes.git ignore some warnings --- 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); } }