NOBUG: Improve vis. of exception params.
authorEloy Lafuente <stronk7@moodle.org>
Wed, 21 Apr 2010 09:37:26 +0000 (09:37 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Wed, 21 Apr 2010 09:37:26 +0000 (09:37 +0000)
admin/report/unittest/ex_reporter.php

index 39a6297..ff3f5a0 100644 (file)
@@ -149,7 +149,7 @@ class ExHtmlReporter extends HtmlReporter {
             $message.='<br/><br/>Error string: <tt>'.s($exception->errorcode).
                 '</tt> from <tt>'.s($exception->module).'</tt>';
             if($exception->a!==null) {
-                $message.='(<tt>'.s($exception->a).'</tt>)';
+                $message.='(<tt>'.s(implode(', ', (array)$exception->a)).'</tt>)';
             }
             $message.=' &ndash; <i>'.get_string($exception->errorcode,
                 $exception->module,$exception->a).'</i>';