Permalink
Browse files

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

  • Loading branch information...
1 parent 8d5acf0 commit e32804358631a2e803b2754207617a54ce0b51cf @jrbasso jrbasso committed with lorenzo Jan 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/view/helper.php
@@ -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();

0 comments on commit e328043

Please sign in to comment.