Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit e32804358631a2e803b2754207617a54ce0b51cf 1 parent 8d5acf0
@jrbasso jrbasso authored lorenzo committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  cake/libs/view/helper.php
View
2  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();
Please sign in to comment.
Something went wrong with that request. Please try again.