mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-51790 block_community: xmlrpc expects correct types
This is defined as an int on the hub site, so it must be sent as an int.
This commit is contained in:
parent
74fad2ce3d
commit
390b833ada
@ -193,7 +193,7 @@ if (optional_param('executesearch', 0, PARAM_INT) and confirm_sesskey()) {
|
||||
|
||||
$function = 'hub_get_courses';
|
||||
$params = array('search' => $search, 'downloadable' => $downloadable,
|
||||
'enrollable' => !$downloadable, 'options' => $options);
|
||||
'enrollable' => intval(!$downloadable), 'options' => $options);
|
||||
$serverurl = $huburl . "/local/hub/webservice/webservices.php";
|
||||
require_once($CFG->dirroot . "/webservice/xmlrpc/lib.php");
|
||||
$xmlrpcclient = new webservice_xmlrpc_client($serverurl, $token);
|
||||
|
Loading…
x
Reference in New Issue
Block a user