Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLukas Winkler <git@lw1.at>2021-06-18 21:08:26 +0300
committerGitHub <noreply@github.com>2021-06-18 21:08:26 +0300
commit3e4aaf404768bb800d8e9e6f2f750458203fcd47 (patch)
treea6fbdf4e7edcb100a433fa63c2ea300d7f9c0673 /core
parent482cf02b00876f799516036cef52c061136a0954 (diff)
allow empty site list (#17693)
* allow empty site list * no null in $segmentIds
Diffstat (limited to 'core')
-rw-r--r--core/Site.php4
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);
}