MDL-37961 webservice: PARAM_BOOL with PARAM_DEFAULT accepts boolean default

This commit is contained in:
Frederic Massart
2013-02-12 00:44:42 +01:00
committed by Eloy Lafuente (stronk7)
parent 731ff94a87
commit a3ded4c023
+1 -1
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;