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
diff options
context:
space:
mode:
authorAltamashShaikh <altamash@innocraft.com>2021-10-08 22:35:27 +0300
committerGitHub <noreply@github.com>2021-10-08 22:35:27 +0300
commitf15bd278545bf700344aab5bdd6633b6d0d0344c (patch)
treeff9f85c9ffd38a6ce6e08053eb6dffa9cd946545 /tests/PHPUnit/Framework
parentbd118d12701009d72576fed7dd4e5bdf45ab3368 (diff)
Fixed fake acess check when idsite=0, #18115 (#18116)
Diffstat (limited to 'tests/PHPUnit/Framework')
-rw-r--r--tests/PHPUnit/Framework/Mock/FakeAccess.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PHPUnit/Framework/Mock/FakeAccess.php b/tests/PHPUnit/Framework/Mock/FakeAccess.php
index c84d8c192c..aa649fed1b 100644
--- a/tests/PHPUnit/Framework/Mock/FakeAccess.php
+++ b/tests/PHPUnit/Framework/Mock/FakeAccess.php
@@ -166,7 +166,7 @@ class FakeAccess extends Access
$websitesAccess = array_merge(self::$idSitesView, self::$idSitesWrite, self::$idSitesAdmin);
if (!is_array($idSites)) {
- if ($idSites == 'all') {
+ if ($idSites === 'all') {
$idSites = API::getInstance()->getAllSitesId();
} else {
$idSites = explode(',', $idSites);