From e053c372ef369c8059410c02b30af2f8651b8b63 Mon Sep 17 00:00:00 2001 From: Mike Kruk Date: Mon, 29 Oct 2012 15:34:29 -0400 Subject: [PATCH] fix notice where pretty_array was performing an array to string conv. --- lib/Toby/ShowExceptions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +}