Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-31077-MOODLE_22_STABLE' of git://github.com/mouneyr…

…ac/moodle into MOODLE_22_STABLE
  • Loading branch information...
commit cd5189e2661345e209396b21ad4fc787fdb2573a 2 parents c95efa3 + 4bc3f5a
@samhemelryk samhemelryk authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 webservice/rest/locallib.php
View
6 webservice/rest/locallib.php
@@ -85,7 +85,11 @@ protected function send_response() {
//Check that the returned values are valid
try {
- $validatedvalues = external_api::clean_returnvalue($this->function->returns_desc, $this->returns);
+ if ($this->function->returns_desc != null) {
+ $validatedvalues = external_api::clean_returnvalue($this->function->returns_desc, $this->returns);
+ } else {
+ $validatedvalues = null;
+ }
} catch (Exception $ex) {
$exception = $ex;
}
Please sign in to comment.
Something went wrong with that request. Please try again.