Permalink
Browse files

Fix error handling Closure objects in the variables panel.

  • Loading branch information...
1 parent 20c2b21 commit 78d52c1f9e7d17e87b70ea57b0822a28595407ee @markstory markstory committed Aug 3, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 View/Helper/HtmlToolbarHelper.php
@@ -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);
}

0 comments on commit 78d52c1

Please sign in to comment.