aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xstats.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/stats.pl b/stats.pl
index ce7ebbd..7284285 100755
--- a/stats.pl
+++ b/stats.pl
@@ -78,7 +78,7 @@ for my $group (@group_names) {
my $content = get("http://".$group_info->{'server'}->{$group});
- if (length $content > 1) {
+ if (defined($content) && length $content > 1) {
for my $line (split /\n/, $content) {
last if (defined($users) && defined($posts) && defined($comments));
last if ($line =~ /Last activity/i);