DbUserGroupBackend: Do not try to fetch a group id for null

refs #8826
This commit is contained in:
Johannes Meyer 2015-06-01 15:16:03 +02:00
parent beb5bd7370
commit 62fff94808

View File

@ -208,8 +208,8 @@ class DbUserGroupBackend extends DbRepository implements UserGroupBackendInterfa
*/ */
protected function persistGroupId($groupName) protected function persistGroupId($groupName)
{ {
if (is_int($groupName)) { if (! $groupName || is_int($groupName)) {
return $groupName; // It's obviously already an id return $groupName; // It's obviously already an id or NULL
} }
$groupId = $this->ds $groupId = $this->ds