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);