Skip to content

Commit

Permalink
Adding cast to avoind fatal error in Helper class
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Dec 22, 2010
1 parent 9fac0b9 commit 57e6ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public function clean($output) {
*/
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();
Expand Down

0 comments on commit 57e6ac7

Please sign in to comment.