$ret=false;
continue;
}
- //check that we have the right to sell this category
- if(!array_key_exists($pcid,$pcat))
- $pcat[$pcid]=$session->checkFlags(WTpricecategory::getFromDB($pcid)->flags);
- if(!$pcat[$pcid]){
- $tick->setstatus(WOCartTicket::Invalid);
- $ret=false;
- continue;
- }
+ //check that we have the right to sell this category for this event
+ if(!array_key_exists($evid,$pcat))
+ $pcat[$evid]=array();
+ if(!array_key_exists($pcid,$pcat[$evid]))
+ $pcat[$evid][$pcid]=$session->checkFlags($tick->geteventprice()->getflags());
+ if(!$pcat[$evid][$pcid]){
+ $tick->setstatus(WOCartTicket::Invalid);
+ $ret=false;
+ continue;
+ }
//set the price
$tick->setprice($evprice[$evid][$pcid]);
//check enough seats for event