Ver Fonte

Fix a bug with cchannels always being used, lets check if it holds more than 0 elements rather than to check whether its defined

Morten Brix Pedersen há 24 anos atrás
pai
commit
3c67f3b391
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      modules/Pisg.pm

+ 1 - 1
modules/Pisg.pm

@@ -498,7 +498,7 @@ sub parse_channels
     
     # make a list of channels to do
     my @chanlist;
-    if (defined $self->{cfg}->{cchannels}) {
+    if (scalar @ {$self->{cfg}->{cchannels} } > 0) {
         @chanlist = @{ $self->{cfg}->{cchannels} };
     } else {
         @chanlist = keys %{ $self->{chans} };