From 91a00e3d3c54cf35f0ff5d63dd257ad72babc5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 12 Nov 2020 18:07:09 +0100 Subject: [PATCH] Only try to extract first part of the explode result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/ConfigService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index d917740a2..20e0e2e89 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -65,7 +65,7 @@ class ConfigService { public function get($key) { $result = null; - [$scope, $id] = explode(':', $key, 2); + [$scope] = explode(':', $key, 2); switch ($scope) { case 'groupLimit': if (!$this->groupManager->isAdmin($this->userId)) {