Fix GrantSession rules sort

2620-ppolicy-binding
Yadd 4 years ago
parent 630343bdbe
commit a24ed7bc41
  1. 2
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/GrantSession.pm

@ -36,7 +36,7 @@ sub run {
sub sortByComment {
my $A = ( $a =~ /^.*?##(.*)$/ )[0];
my $B = ( $b =~ /^.*?##(.*)$/ )[0];
return !$A ? 1 : !$B ? -1 : $A cmp $B;
return !( $A or $B ) ? $a cmp $b : !$A ? 1 : !$B ? -1 : $A cmp $B;
}
# Avoid display notification if AuthResult is not null

Loading…
Cancel
Save