Merge branch '1.3' into 1.3-misc

This commit is contained in:
mark_story 2009-09-26 21:18:15 -04:00
commit 6dbb8f3994

View file

@ -1163,10 +1163,10 @@ class Set extends Object {
$extracted = Set::extract($path, $data);
if ($options['type'] === 'map') {
$result = array_map($callback, &$extracted);
$result = array_map($callback, $extracted);
} elseif ($options['type'] === 'reduce') {
$result = array_reduce(&$extracted, $callback);
$result = array_reduce($extracted, $callback);
} elseif ($options['type'] === 'pass') {
$result = call_user_func_array($callback, array($extracted));