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
1 changed files with 2 additions and 2 deletions

View File

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