mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-76284 webservice: early exit if no users for missing capabilities.
This commit is contained in:
parent
0ea3d45e04
commit
fac0c27efb
@ -684,7 +684,8 @@ class webservice {
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($servicecaps)) {
|
||||
// Bail out early if there's nothing to process.
|
||||
if (empty($users) || empty($servicecaps)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user