fixed issue where upgrade will fail if there are any ldap groups with no users in them.
This commit is contained in:
parent
45db6cf962
commit
5be9f70efc
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ sub fixGroups {
|
|||
foreach my $linkId (keys %{$ldapLinks}) {
|
||||
my $ldapLink = $ldapLinks->{$linkId};
|
||||
my $people = $ldapLink->getProperty($hash->{ldapGroup},$hash->{ldapGroupProperty});
|
||||
if(scalar(@{$people})) {
|
||||
if($people && scalar(@{$people})) {
|
||||
$session->db->write("update groups set ldapLinkId=? where groupId=?",[$linkId,$hash->{groupId}]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue