diff options
author | Lukas Winkler <git@lw1.at> | 2021-06-18 21:08:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 21:08:26 +0300 |
commit | 3e4aaf404768bb800d8e9e6f2f750458203fcd47 (patch) | |
tree | a6fbdf4e7edcb100a433fa63c2ea300d7f9c0673 /core | |
parent | 482cf02b00876f799516036cef52c061136a0954 (diff) |
allow empty site list (#17693)
* allow empty site list
* no null in $segmentIds
Diffstat (limited to 'core')
-rw-r--r-- | core/Site.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Site.php b/core/Site.php index 9e74a43b38..0b47476adb 100644 --- a/core/Site.php +++ b/core/Site.php @@ -422,6 +422,10 @@ class Site */ public static function getIdSitesFromIdSitesString($ids, $_restrictSitesToLogin = false) { + if (empty($ids)) { + return []; + } + if ($ids === 'all') { return API::getInstance()->getSitesIdWithAtLeastViewAccess($_restrictSitesToLogin); } |