/[Frey]/trunk/lib/App/RoomReservation/Reservation.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/Reservation.pm

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

revision 1118 by dpavlin, Tue Jun 30 09:42:37 2009 UTC revision 1120 by dpavlin, Tue Jun 30 10:26:49 2009 UTC
# Line 84  has _confirmed => ( Line 84  has _confirmed => (
84  sub BUILD {  sub BUILD {
85          my $self = shift;          my $self = shift;
86          die "e-mail not verified\n" unless $self->email eq $self->email_verify;          die "e-mail not verified\n" unless $self->email eq $self->email_verify;
87            my $sth = $self->dbh->prepare(qq{
88                    select count(*) from reservation where email = ?
89            });
90            $sth->execute( $self->email );
91            my ($registred) = $sth->fetchrow_array;
92            die "e-mail address ", $self->email, " allready registred\n" if $registred;
93  }  }
94    
95  my @cols = Frey::PPI->new( class => __PACKAGE__ )->attribute_order;  my @cols = Frey::PPI->new( class => __PACKAGE__ )->attribute_order;

Legend:
Removed from v.1118  
changed lines
  Added in v.1120

  ViewVC Help
Powered by ViewVC 1.1.26