$v['rate_total'] = money( $charge );
// If this event needs attendees
-
if( $reg_data['need_attendees'] == 't' )
{
// If there's any problems change step back to 2 - Checkout Form
- if( count($reason) > 0 )
+ if( count($GLOBALS['reason']) > 0 )
$Action = "Step2";
else
{
if( empty($ccname) )
add_reason( "Name on Card is required" );
- $status = SI_REG_STATUS_CC_PEND; // It's OK to set this here since we're not going to process anything unless there's no failure "$reason".
+ $status = SI_REG_STATUS_CC_PEND; // It's OK to set this here since we're not going to process anything unless there's no failure "$GLOBALS['reason']".
}
if( isset($cc_reason) && $cc_reason != '' )
add_reason( $cc_reason );
- if( count($reason) > 0 )
+ if( count($GLOBALS['reason']) > 0 )
$Action = "Step3";
}
$v["navigation"] = $nav;
$v["form_data"] = $GLOBALS['form_data'];
$v["link_data"] = $link_data;
-$view_tags["reason"] = $reason;
-$v['have_reason'] = ( count($reason) > 0 ? 'YES' : 'NO' );
+$view_tags["reason"] = $GLOBALS['reason'];
+$v['have_reason'] = ( count($GLOBALS['reason']) > 0 ? 'YES' : 'NO' );
$v["problem"] = "";
$v["price_debug"] = "";
$v["next_step"] = "Step$next_step";