diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-09-28 23:06:43 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-09-28 23:06:43 +0200 |
commit | c3395f3e7a17c8455742f2b9d505342a0f5e21ac (patch) | |
tree | c4a6e7d9bdde5be449d93ba0a5cb9ac0d02fd186 | |
parent | 536ee9240fa3fc73a4b38d862d317b1806a45911 (diff) |
well, that was stupid0.10
-rw-r--r-- | index.pl | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |