From e32804358631a2e803b2754207617a54ce0b51cf Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Tue, 19 Jan 2010 09:40:06 -0200 Subject: [PATCH] Minor optimization in helper. No need cast, always is array. --- cake/libs/view/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/helper.php b/cake/libs/view/helper.php index 5ff3bb4d1..2e9cf4964 100644 --- a/cake/libs/view/helper.php +++ b/cake/libs/view/helper.php @@ -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();