--- trunk/lib/App/RoomReservation/Confirmation.pm 2009/07/01 21:47:04 1151 +++ trunk/lib/App/RoomReservation/Confirmation.pm 2009/07/01 22:25:11 1152 @@ -51,27 +51,9 @@ if ( $sth->rows == 1 ) { - $sth = $dbh->prepare(qq{ - select - ime||' '||prezime, - _seat_number, - email - from reservation - where - _confirmed is true --- and _seat_number is not null - and md5(id||email) = ? - }); - - $sth->execute( $self->token ); - die "can't find account associated with ", $self->token unless $sth->rows == 1; - my @reservation = $sth->fetchrow_array; - push @reservation, - $self->url_for( 'Confirmation/cancel_as_markup?token=' . $self->token ); - - return $self->seat_confirmation_message( @reservation ); + return $self->seat_confirmation_message( token => $self->token ); } else { die "Problem with confirmation.\n";