Permalink
Browse files

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

…ac/moodle into MOODLE_22_STABLE
  • Loading branch information...
2 parents c95efa3 + 4bc3f5a commit cd5189e2661345e209396b21ad4fc787fdb2573a Sam Hemelryk committed Jan 23, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 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;
}

0 comments on commit cd5189e

Please sign in to comment.