/[Frey]/trunk/lib/App/RoomReservation/Confirmation.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/App/RoomReservation/Confirmation.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1151 by dpavlin, Wed Jul 1 21:47:04 2009 UTC revision 1152 by dpavlin, Wed Jul 1 22:25:11 2009 UTC
# Line 51  sub verify_as_markup { Line 51  sub verify_as_markup {
51    
52          if ( $sth->rows == 1 ) {          if ( $sth->rows == 1 ) {
53    
                 $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 );  
   
54                  die "can't find account associated with ", $self->token unless $sth->rows == 1;                  die "can't find account associated with ", $self->token unless $sth->rows == 1;
55    
56                  my @reservation = $sth->fetchrow_array;                  return $self->seat_confirmation_message( token => $self->token );
                 push @reservation,  
                         $self->url_for( 'Confirmation/cancel_as_markup?token=' . $self->token );  
   
                 return $self->seat_confirmation_message( @reservation );  
57    
58          } else {          } else {
59                  die "Problem with confirmation.\n";                  die "Problem with confirmation.\n";

Legend:
Removed from v.1151  
changed lines
  Added in v.1152

  ViewVC Help
Powered by ViewVC 1.1.26