Fixed syntax error

This commit is contained in:
Frank Dillon 2006-05-10 19:34:05 +00:00
parent 34eded2de7
commit 21bdb2a5d3

View file

@ -51,7 +51,7 @@ sub handler {
my $theseRegs = $self->session->db->buildArrayRefOfHashRefs("select * from EventManagementSystem_registrations where purchaseId=?",[$purchaseId]); my $theseRegs = $self->session->db->buildArrayRefOfHashRefs("select * from EventManagementSystem_registrations where purchaseId=?",[$purchaseId]);
foreach (@$theseRegs) { foreach (@$theseRegs) {
# clean up the duplicate registrations, if any. # clean up the duplicate registrations, if any.
$self->session->db->write("delete from EventManagementSystem_registrations where badgeId=? and productId=? and registrationId!=?,[$_->{badgeId},$_->{productId},$_->{registrationId}]); $self->session->db->write("delete from EventManagementSystem_registrations where badgeId=? and productId=? and registrationId!=?",[$_->{badgeId},$_->{productId},$_->{registrationId}]);
} }
$self->session->scratch->delete("purchaseId".$counter); $self->session->scratch->delete("purchaseId".$counter);
$counter++; $counter++;