Check for a valid group before using it.
This commit is contained in:
parent
c3aa44a27c
commit
cb5144f809
1 changed files with 2 additions and 1 deletions
|
|
@ -381,7 +381,8 @@ sub delete {
|
|||
$self->uncache;
|
||||
|
||||
foreach my $groupId ( @{ $self->getGroups } ) {
|
||||
WebGUI::Group->new($session, $groupId)->deleteUsers([$userId]);
|
||||
my $group = WebGUI::Group->new($session, $groupId);
|
||||
$group->deleteUsers([$userId]) if $group;
|
||||
}
|
||||
|
||||
my $auth = $self->authInstance;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue