diff --git a/src/Pluf/HTTP/Response/ServerErrorDebug.php b/src/Pluf/HTTP/Response/ServerErrorDebug.php index f25e03a..c4db34a 100644 --- a/src/Pluf/HTTP/Response/ServerErrorDebug.php +++ b/src/Pluf/HTTP/Response/ServerErrorDebug.php @@ -225,15 +225,15 @@ function Pluf_HTTP_Response_ServerErrorDebug_Pretty($e) '; foreach ($frame['args'] as $k => $v) { - $name = isset($params[$k]) ? '$'.$params[$k]->name : '?'; + $name = (isset($params[$k]) and isset($params[$k]->name)) ? '$'.$params[$k]->name : '?'; $out .= ' '.$o($k).' '.$o($name).' -
'.highlight_string(print_r($v,true), true).'
+
'.Pluf_esc(print_r($v, true)).'
- '; + '; } $out .= ''; } @@ -270,7 +270,7 @@ function Pluf_HTTP_Response_ServerErrorDebug_Pretty($e) $out .= '
No src available
'; } $out .= ''; - } + } // End of foreach $frames $out .= '