Only use first part of the explode result

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-11-16 08:40:38 +01:00
parent 2d10186557
commit aacccd06bc

View File

@@ -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)) {