Only try to extract 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-12 18:07:09 +01:00
parent a8b6196e4d
commit 91a00e3d3c

View File

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