Making modParams work with non-array values.

All but true, false, null will replace the parameter now.
This allows modification of string and object parameters.
This commit is contained in:
mark_story 2011-10-08 21:34:18 -04:00
parent c5c2859800
commit 39b1203e9a

View file

@ -117,7 +117,7 @@ abstract class ObjectCollection {
(is_array($options['breakOn']) && in_array($result, $options['breakOn'], true)))
) {
return $result;
} elseif ($options['modParams'] !== false && is_array($result)) {
} elseif ($options['modParams'] !== false && !in_array($result, array(true, false, null), true)) {
$params[$options['modParams']] = $result;
}
}
@ -303,5 +303,4 @@ abstract class ObjectCollection {
}
return $normal;
}
}