From 390b833ada6b482cb6ce1501a569b29c46357971 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Thu, 15 Oct 2015 15:08:51 +0800 Subject: [PATCH] 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. --- blocks/community/communitycourse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/community/communitycourse.php b/blocks/community/communitycourse.php index c6539ccadf9..9eb544ba02c 100644 --- a/blocks/community/communitycourse.php +++ b/blocks/community/communitycourse.php @@ -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);