Skip to content

Commit

Permalink
DbUserGroupBackend: Do not try to fetch a group id for null
Browse files Browse the repository at this point in the history
refs #8826
  • Loading branch information
Johannes Meyer committed Jun 1, 2015
1 parent beb5bd7 commit 62fff94
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -208,8 +208,8 @@ protected function joinGroupMembership(RepositoryQuery $query)
*/
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
Expand Down

0 comments on commit 62fff94

Please sign in to comment.