X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplbacktrace.php;h=9fb80ec21dc2f41612c3a67bdf569589151265f3;hb=f1c8bb75eaae934ac2dd1cbd7f8bbc10960413ee;hp=2f18f7a151a7f4230fcf61500d33b2d6684f364d;hpb=9e1b43206453894a404ca1c0458423ece6811043;p=platal.git diff --git a/classes/plbacktrace.php b/classes/plbacktrace.php index 2f18f7a..9fb80ec 100644 --- a/classes/plbacktrace.php +++ b/classes/plbacktrace.php @@ -1,6 +1,6 @@ fixCharset(@$entry[$errorf]); unset($entry[$errorf]); if ($trace['error']) { $this->error = true; } - $trace['data'] = array($entry); + $trace['data'] = array($this->fixCharset($entry)); $this->traces[] =& $trace; } @@ -90,7 +94,8 @@ class PlBacktrace { $trace =& $this->traces[count($this->traces) - 1]; $trace['rows'] = $rows; - $trace['error'] = $error; + $trace['error'] = $this->fixCharset($error); + array_walk_recursive($userdata, array($this, 'fixCharset')); $trace['data'] = $userdata; if ($trace['error']) { $this->error = true;