mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-73575 webservice: ensure configured protocols are non-empty.
This commit is contained in:
parent
e78184d827
commit
ef871e28b5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user