MDL-37961 webservice: PARAM_BOOL with PARAM_DEFAULT accepts boolean default

This commit is contained in:
Frederic Massart 2013-02-11 14:37:19 +08:00
parent 6319737865
commit 4d3fd60d28

View File

@ -1191,7 +1191,7 @@ class '.$classname.' {
} else {
switch($keydesc->type) {
case PARAM_BOOL:
$paramanddefault .= '='.$keydesc->default; break;
$paramanddefault .= '='. (int) $keydesc->default; break;
case PARAM_INT:
$paramanddefault .= '='.$keydesc->default; break;
case PARAM_FLOAT;