Skip to content

Commit

Permalink
Avoid warning after adding a new group
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Mar 25, 2009
1 parent a656f81 commit d907500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colobus
Expand Up @@ -72,7 +72,7 @@ if (grep { !$groups{$_}->{num} } keys %groups) {
unless $groups{$name}->{num} == $id;
}

$_ > $maxid and $maxid = $_ for map { $_->{num} } values %groups;
$_ > $maxid and $maxid = $_ for map { $_->{num} || 0 } values %groups;

while (my ($name, $id) = each %groups) {
next if ($db_groups->{$name});
Expand Down

0 comments on commit d907500

Please sign in to comment.