summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-28 23:06:43 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-28 23:06:43 +0200
commitc3395f3e7a17c8455742f2b9d505342a0f5e21ac (patch)
treec4a6e7d9bdde5be449d93ba0a5cb9ac0d02fd186
parent536ee9240fa3fc73a4b38d862d317b1806a45911 (diff)
well, that was stupid0.10
-rw-r--r--index.pl7
1 files changed, 3 insertions, 4 deletions
diff --git a/index.pl b/index.pl
index e53c063..687804d 100644
--- a/index.pl
+++ b/index.pl
@@ -146,11 +146,10 @@ sub handle_request {
my $no_lines = $self->param('no_lines');
my $frontend = $self->param('frontend') // 'png';
my $backend = $self->param('backend') // $default{backend};
- my ( $data, $errstr );
+ my $data;
if ( ( $city and $stop ) or ( $backend eq 'aseag' and $stop ) ) {
- ( $data, $errstr )
- = get_results( $self->param('backend') // $default{backend},
+ $data = get_results( $self->param('backend') // $default{backend},
$city, $stop );
}
@@ -171,7 +170,7 @@ sub handle_request {
stop => $stop,
version => $VERSION,
frontend => $frontend,
- errstr => $errstr,
+ errstr => $data->{errstr},
name_candidates => $data->{name_candidates},
place_candidates => $data->{place_candidates},
title => $stop