Permalink
Browse files

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

…efault
  • Loading branch information...
1 parent 6319737 commit 4d3fd60d28b9f76d73f54083e144139093bdfcab @FMCorz FMCorz committed 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 4d3fd60

Please sign in to comment.