Skip to content

Commit

Permalink
Fix error handling Closure objects in the variables panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 3, 2012
1 parent 20c2b21 commit 78d52c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion View/Helper/HtmlToolbarHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ public function makeNeatArray($values, $openDepth = 0, $currentDepth = 0, $doubl
if (empty($value) && $value != 0) {
$value = '(empty)';
}

if ($value instanceof Closure) {
$value = 'function';
}
if (is_object($value)) {
$value = Set::reverse($value, true);
}
Expand Down

0 comments on commit 78d52c1

Please sign in to comment.