X-Git-Url: https://code.th-h.de/?p=usenet%2Fnewsstats.git;a=blobdiff_plain;f=bin%2Fgroupstats.pl;h=b96a9d633906208fe8d38b102440f799c9a92b52;hp=7f3a32cd0fe5ebecbf355adfdc94c2ad7c37fcda;hb=22d3d70a7285bd0730d301609da05ab09ef640e5;hpb=599fefbf6aea5777c2958718048ad3e3a12050fc diff --git a/bin/groupstats.pl b/bin/groupstats.pl index 7f3a32c..b96a9d6 100755 --- a/bin/groupstats.pl +++ b/bin/groupstats.pl @@ -140,8 +140,8 @@ $OptGroupBy = 'newsgroup' if (!$OptGroupBy and $OptBoundType and $OptBoundType ne 'default'); # default to 'newsgroup' if $OptGroupBy is not set and # just one newsgroup is requested, but more than one month -$OptGroupBy = 'newsgroup' if (!$OptGroupBy and - $OptMonth =~ /:/ and $OptNewsgroups !~ /[:*%]/); +$OptGroupBy = 'newsgroup' if (!$OptGroupBy and $OptMonth and $OptMonth =~ /:/ + and $OptNewsgroups and $OptNewsgroups !~ /[:*%]/); # parse $OptGroupBy to $GroupBy, create ORDER BY clause $SQLOrderClause # if $OptGroupBy is still not set, SQLSortOrder() will default to 'month' my ($GroupBy,$SQLOrderClause) = SQLSortOrder($OptGroupBy, $OptOrderBy);