Minor optimization in helper. No need cast, always is array.

This commit is contained in:
Juan Basso 2010-01-19 09:40:06 -02:00 committed by José Lorenzo Rodríguez
parent 8d5acf0706
commit e328043586

View file

@ -317,7 +317,7 @@ class Helper extends Overloadable {
if (!is_array($exclude)) {
$exclude = array();
}
$keys = array_diff(array_keys($options), array_merge((array)$exclude, array('escape')));
$keys = array_diff(array_keys($options), array_merge($exclude, array('escape')));
$values = array_intersect_key(array_values($options), $keys);
$escape = $options['escape'];
$attributes = array();