Adding cast to avoind fatal error in Helper class

This commit is contained in:
José Lorenzo Rodríguez 2010-12-21 22:05:36 -04:30
parent 9fac0b92c6
commit 57e6ac7eb7

View file

@ -370,7 +370,7 @@ class Helper extends Object {
*/
public function _parseAttributes($options, $exclude = null, $insertBefore = ' ', $insertAfter = null) {
if (!is_string($options)) {
$options = $options + array('escape' => true);
$options = (array) $options + array('escape' => true);
if (!is_array($exclude)) {
$exclude = array();