summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-10-09 16:40:25 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-10-09 16:40:25 +0200
commiteb66af0f2dd2092b89e34931de764f076ffcc17b (patch)
tree755924c644d2a4d64d58b060de1b27380169a62c
parent7e6c7b269ab3bf3759d5f04568d13065343f89f8 (diff)
fix landing page (errstr was not used correctly)
-rw-r--r--cgi/index.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index 118df7d..8ddd0b9 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -76,9 +76,12 @@ sub handle_request {
my $no_lines = $self->param('no_lines');
my $frontend = $self->param('frontend') // 'png';
+ my $errstr;
- my (undef, $errstr) = get_results( $self->param('backend') // $default{backend},
+ if ($city and $stop) {
+ (undef, $errstr) = get_results( $self->param('backend') // $default{backend},
$city, $stop);
+ }
if ( not $no_lines or $no_lines < 1 or $no_lines > 40 ) {
$no_lines = $default{no_lines};