diff --git a/lib/Toby/ShowExceptions.php b/lib/Toby/ShowExceptions.php index d8011d6..076d038 100644 --- a/lib/Toby/ShowExceptions.php +++ b/lib/Toby/ShowExceptions.php @@ -18,7 +18,10 @@ private function pretty_array($array,$name="data") { $result = ""; foreach($array as $key=>$value) + { + if(!is_string($value)) $value = 'Object'; $result .= "$key$value"; + } if(empty($result)) return "

No $name.

"; return "$result
VariableValue
"; @@ -110,4 +113,4 @@ protected function error_template($e,$env=null) TEMPLATE; } -} \ No newline at end of file +}