Skip to content

Commit

Permalink
Minor optimization in helper. No need cast, always is array.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso authored and lorenzo committed Jan 20, 2010
1 parent 8d5acf0 commit e328043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/view/helper.php
Expand Up @@ -317,7 +317,7 @@ function _parseAttributes($options, $exclude = null, $insertBefore = ' ', $inser
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();
Expand Down

0 comments on commit e328043

Please sign in to comment.