diff options
author | Marius Halden <marius.h@lden.org> | 2015-02-14 06:49:38 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2015-02-14 06:49:38 +0100 |
commit | c0c141a88119642fc496d52cd167918e210f94b0 (patch) | |
tree | da914bdbf30150ea2e72a7cc6f45a5a1b7c95f07 | |
parent | e4cc3f0733b59e1cb730a083ab60230f1739fed9 (diff) | |
download | appdrift-stats-c0c141a88119642fc496d52cd167918e210f94b0.tar.gz appdrift-stats-c0c141a88119642fc496d52cd167918e210f94b0.tar.bz2 appdrift-stats-c0c141a88119642fc496d52cd167918e210f94b0.tar.xz |
More error handling
-rwxr-xr-x | stats.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |