Check for a valid group before using it.

This commit is contained in:
Colin Kuskie 2010-02-03 16:29:06 -08:00
parent c3aa44a27c
commit cb5144f809

View file

@ -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;