diff options
author | AltamashShaikh <altamash@innocraft.com> | 2021-10-08 22:35:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 22:35:27 +0300 |
commit | f15bd278545bf700344aab5bdd6633b6d0d0344c (patch) | |
tree | ff9f85c9ffd38a6ce6e08053eb6dffa9cd946545 /tests/PHPUnit/Framework | |
parent | bd118d12701009d72576fed7dd4e5bdf45ab3368 (diff) |
Fixed fake acess check when idsite=0, #18115 (#18116)
Diffstat (limited to 'tests/PHPUnit/Framework')
-rw-r--r-- | tests/PHPUnit/Framework/Mock/FakeAccess.php | 2 |
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); |