replace all non-numeric values in update array with U for unknown
authorrobert <robert>
Fri, 13 May 2005 19:24:21 +0000 (19:24 +0000)
committerrobert <robert>
Fri, 13 May 2005 19:24:21 +0000 (19:24 +0000)
include/classes/rrdstat.php-class

index 55ffaec9d380e2ac7099597ddfb7757a92c91149..1c2306bb56f294f43a3743f1cf381cbc1ea50b8c 100644 (file)
@@ -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) {