Skip to content

Commit

Permalink
Merge branch 'MDL-31077' of git://github.com/mouneyrac/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Jan 23, 2012
2 parents be99741 + 2ada59b commit 1a20b34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webservice/rest/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1a20b34

Please sign in to comment.