From aacccd06bc0cfa22e2253bbb7dd0ed069367ab73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 16 Nov 2020 08:40:38 +0100 Subject: [PATCH] Only use 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 20e0e2e89..0dde5487d 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -91,7 +91,7 @@ class ConfigService { public function set($key, $value) { $result = null; - [$scope, $id] = explode(':', $key, 2); + [$scope] = explode(':', $key, 2); switch ($scope) { case 'groupLimit': if (!$this->groupManager->isAdmin($this->userId)) {