Merge branch 'MDL-37355-stable23' of git://github.com/mouneyrac/moodle into MOODLE_23...
authorDan Poltawski <dan@moodle.com>
Tue, 22 Jan 2013 01:06:44 +0000 (09:06 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 22 Jan 2013 01:06:44 +0000 (09:06 +0800)
webservice/rest/locallib.php

index abd131c..45d9fd6 100644 (file)
@@ -120,7 +120,7 @@ class webservice_rest_server extends webservice_base_server {
             } else {
                 $response = '<?xml version="1.0" encoding="UTF-8" ?>'."\n";
                 $response .= '<RESPONSE>'."\n";
-                $response .= self::xmlize_result($this->returns, $this->function->returns_desc);
+                $response .= self::xmlize_result($validatedvalues, $this->function->returns_desc);
                 $response .= '</RESPONSE>'."\n";
             }
         }
@@ -248,4 +248,4 @@ class webservice_rest_test_client implements webservice_test_client_interface {
     public function simpletest($serverurl, $function, $params) {
         return download_file_content($serverurl.'&wsfunction='.$function, null, $params);
     }
-}
\ No newline at end of file
+}