From: robert Date: Fri, 13 May 2005 19:24:21 +0000 (+0000) Subject: replace all non-numeric values in update array with U for unknown X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=68424dd31013b5d8444c21a3562ada396e4607ad;p=php-utility-classes.git replace all non-numeric values in update array with U for unknown --- diff --git a/include/classes/rrdstat.php-class b/include/classes/rrdstat.php-class index 55ffaec..1c2306b 100644 --- a/include/classes/rrdstat.php-class +++ b/include/classes/rrdstat.php-class @@ -157,6 +157,8 @@ class rrdstat { $upvals = explode("\n", ob_get_contents()); ob_end_clean(); } + $walkfunc = create_function('&$val', 'return (is_numeric($val)?$val:"U");'); + array_walk($upvals, $walkfunc); } else { foreach ($this->rrd_fields as $ds) {