From: robert Date: Fri, 13 May 2005 19:25:49 +0000 (+0000) Subject: try it this way X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=1efa5ce77c7bb47081432e2fe043214e4d7fde9c;p=php-utility-classes.git try it this way --- diff --git a/include/classes/rrdstat.php-class b/include/classes/rrdstat.php-class index 1c2306b..74b5b5c 100644 --- a/include/classes/rrdstat.php-class +++ b/include/classes/rrdstat.php-class @@ -157,7 +157,7 @@ class rrdstat { $upvals = explode("\n", ob_get_contents()); ob_end_clean(); } - $walkfunc = create_function('&$val', 'return (is_numeric($val)?$val:"U");'); + $walkfunc = create_function('&$val', '$val = is_numeric($val)?$val:"U";'); array_walk($upvals, $walkfunc); } else {