Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…efault
  • Loading branch information...
commit a3ded4c0233bbee3b66b2d2733d6ea2eff10fe9d 1 parent 731ff94
Frédéric Massart FMCorz authored stronk7 committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  webservice/lib.php
2  webservice/lib.php
@@ -1191,7 +1191,7 @@ protected function get_virtual_method_code($function) {
1191 1191 } else {
1192 1192 switch($keydesc->type) {
1193 1193 case PARAM_BOOL:
1194   - $paramanddefault .= '='.$keydesc->default; break;
  1194 + $paramanddefault .= '='. (int) $keydesc->default; break;
1195 1195 case PARAM_INT:
1196 1196 $paramanddefault .= '='.$keydesc->default; break;
1197 1197 case PARAM_FLOAT;

0 comments on commit a3ded4c

Please sign in to comment.
Something went wrong with that request. Please try again.