Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-37961 webservice: PARAM_BOOL with PARAM_DEFAULT accepts boolean d…
…efault
  • Loading branch information
Frederic Massart authored and stronk7 committed Feb 11, 2013
1 parent 731ff94 commit a3ded4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webservice/lib.php
Expand Up @@ -1191,7 +1191,7 @@ protected function get_virtual_method_code($function) {
} 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;
Expand Down

0 comments on commit a3ded4c

Please sign in to comment.