Loading lib/Travelynx.pm +19 −14 Original line number Diff line number Diff line Loading @@ -606,6 +606,11 @@ sub startup { my $user = $self->get_user_status( $uid, $db ); my $train_id = $user->{train_id}; if ( not $station ) { $self->app->log->error("Checkout($uid): station is empty"); return ( 1, 'BUG: Checkout station is empty.' ); } if ( not $user->{checked_in} and not $user->{cancelled} ) { return ( 0, 'You are not checked into any train' ); } Loading Loading
lib/Travelynx.pm +19 −14 Original line number Diff line number Diff line Loading @@ -606,6 +606,11 @@ sub startup { my $user = $self->get_user_status( $uid, $db ); my $train_id = $user->{train_id}; if ( not $station ) { $self->app->log->error("Checkout($uid): station is empty"); return ( 1, 'BUG: Checkout station is empty.' ); } if ( not $user->{checked_in} and not $user->{cancelled} ) { return ( 0, 'You are not checked into any train' ); } Loading