From c3395f3e7a17c8455742f2b9d505342a0f5e21ac Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 28 Sep 2015 23:06:43 +0200 Subject: well, that was stupid --- index.pl | 7 +++---- 1 file 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 -- cgit v1.2.3