Skip to content

Commit

Permalink
webservice MDL-23077 fix execute ws function when the return value is…
Browse files Browse the repository at this point in the history
… null
  • Loading branch information
mouneyrac committed Jul 5, 2010
1 parent a198818 commit 2d5a051
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webservice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,8 @@ public function '.$function->name.'('.$params.') {
protected function service_class_method_body($function, $params){
$descriptionmethod = $function->methodname.'_returns()';
$callforreturnvaluedesc = $function->classname.'::'.$descriptionmethod;
return ' if ('.$callforreturnvaluedesc.' == null) {
return ' if ('.$callforreturnvaluedesc.' == null) {'.
$function->classname.'::'.$function->methodname.'('.$params.');
return null;
}
return external_api::clean_returnvalue('.$callforreturnvaluedesc.', '.$function->classname.'::'.$function->methodname.'('.$params.'));';
Expand Down

0 comments on commit 2d5a051

Please sign in to comment.