Commit ef871e28 authored by Paul Holden's avatar Paul Holden
Browse files

MDL-73575 webservice: ensure configured protocols are non-empty.

parent e78184d8
......@@ -904,7 +904,7 @@ class webservice_access_exception extends moodle_exception {
function webservice_protocol_is_enabled($protocol) {
global $CFG;
if (empty($CFG->enablewebservices)) {
if (empty($CFG->enablewebservices) || empty($CFG->webserviceprotocols)) {
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment