]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
avoid length in boolean context
[public-inbox.git] / lib / PublicInbox / Feed.pm
index 9e567476aa75d289109440812ad242e1eb2297d1..bc76cdcdc446619085dae4cd8865d43084b298ea 100644 (file)
@@ -216,7 +216,7 @@ sub get_feedopts {
                close $fh;
        }
 
-       if ($pi_config && defined $listname && length $listname) {
+       if ($pi_config && defined $listname && $listname ne '') {
                foreach my $key (qw(address)) {
                        $rv{$key} = $pi_config->get($listname, $key) || "";
                }