]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12886 fixed regressions, WS may return any data type, we have to use some var_exp...
authorskodak <skodak>
Fri, 23 Oct 2009 00:03:10 +0000 (00:03 +0000)
committerskodak <skodak>
Fri, 23 Oct 2009 00:03:10 +0000 (00:03 +0000)
webservice/testclient.php

index f6b2de85ea6a247509ebf4bb657b4dd30ef78463..56c5b7f32a97be77765bba075dc110fdf150b8f7 100644 (file)
@@ -126,7 +126,7 @@ if ($mform->is_cancelled()) {
 
     try {
         $response = $testclient->simpletest($serverurl, $function, $params);
-        echo str_replace("\n", '<br />', s($response));
+        echo str_replace("\n", '<br />', s(var_export($response, true)));
     } catch (Exception $ex) {
         //TODO: handle exceptions and faults without exposing of the sensitive information such as debug traces!
         echo str_replace("\n", '<br />', s($ex));