that function takes two arguments per spec
[php-utility-classes.git] / include / classes / rrdstat.php-class
index 55ffaec9d380e2ac7099597ddfb7757a92c91149..6eed1bf259c75360e3aab44cac1ed2cfc3a78df0 100644 (file)
@@ -157,6 +157,8 @@ class rrdstat {
         $upvals = explode("\n", ob_get_contents());
         ob_end_clean();
       }
         $upvals = explode("\n", ob_get_contents());
         ob_end_clean();
       }
+      $walkfunc = create_function('&$val,$key', '$val = is_numeric($val)?$val:"U";');
+      array_walk($upvals, $walkfunc);
     }
     else {
       foreach ($this->rrd_fields as $ds) {
     }
     else {
       foreach ($this->rrd_fields as $ds) {