projects
/
php-utility-classes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
that function takes two arguments per spec
[php-utility-classes.git]
/
include
/
classes
/
rrdstat.php-class
diff --git
a/include/classes/rrdstat.php-class
b/include/classes/rrdstat.php-class
index 1c2306bb56f294f43a3743f1cf381cbc1ea50b8c..6eed1bf259c75360e3aab44cac1ed2cfc3a78df0 100644
(file)
--- 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();
}
$upvals = explode("\n", ob_get_contents());
ob_end_clean();
}
- $walkfunc = create_function('&$val
', 'return (is_numeric($val)?$val:"U")
;');
+ $walkfunc = create_function('&$val
,$key', '$val = is_numeric($val)?$val:"U"
;');
array_walk($upvals, $walkfunc);
}
else {
array_walk($upvals, $walkfunc);
}
else {