Permalink
Browse files

MDL-37961 webservice: PARAM_BOOL with PARAM_DEFAULT accepts boolean d…

…efault
  • Loading branch information...
1 parent 731ff94 commit a3ded4c0233bbee3b66b2d2733d6ea2eff10fe9d @FMCorz FMCorz committed with stronk7 Feb 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 webservice/lib.php
View
@@ -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;

0 comments on commit a3ded4c

Please sign in to comment.