mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
webservice MDL-23077 fix execute ws function when the return value is null
This commit is contained in:
parent
a19881868e
commit
2d5a051e14
@ -714,7 +714,8 @@ class '.$classname.' {
|
||||
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.'));';
|
||||
|
Loading…
x
Reference in New Issue
Block a user