Skip to content

Commit 85d12aa

Browse files
committed
callable bug fixed
1 parent 7ed8678 commit 85d12aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ajax/common/html/PropertyWrapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ public static function wrapStrings($input, $separator=' ', $valueQuote='"') {
4444

4545
public static function wrapObjects($input, $js=NULL, $separator=' ', $valueQuote='"') {
4646
return implode($separator, array_map(function ($v) use($js, $separator, $valueQuote) {
47-
if (is_object($v))
47+
if ($v instanceof BaseHtml)
4848
return $v->compile($js);
4949
elseif (\is_array($v)) {
5050
return self::wrap($v, $js, $separator, $valueQuote);
51-
} else
51+
} elseif(!\is_callable($v))
5252
return $v;
5353
}, $input));
5454
}

0 commit comments

Comments
 (0)