fixup runtime warnings

master
Marek Isalski 5 years ago
parent 3b476d3868
commit b18bf0dab7

@ -552,6 +552,7 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form( $form, &$form_state, $pe
'#options' => $persons,
);
} else {
$form[ 'ticket_for_persons' ] = array( '#options' => array() );
if ( $eventbookingtype[ 'person_ddatacollection' ] ) {
$collection_id = $eventbookingtype[ 'person_ddatacollection' ][ 'id' ];
$collection_data = fulcrm_apiv2_GET( 'ddatacollection/' . $collection_id . '/' );
@ -562,9 +563,7 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form( $form, &$form_state, $pe
$form[ '#submit' ] = 'fulcrm_shoppingcart_buy_eventbookingtype_person_add_guest_form_submit';
}
$form[ 'eventslots' ] = array( '#title' => 'Itinerary',
'#type' => 'fieldset',
);
$form[ 'eventslots' ] = array();
$eventslots = array();
$eventpart = array();
foreach ( $eventbookingtype[ 'event' ][ 'eventparts' ] as $eventpart ) {
@ -608,6 +607,9 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form( $form, &$form_state, $pe
}
}
$form[ 'eventslots' ][ '#title' ] = 'Itinerary';
$form[ 'eventslots' ][ '#type' ] = 'fieldset';
$form[ 'actions' ] = array( '#type' => 'actions' );
$form[ 'actions' ][ 'submit' ] = array( '#type' => 'submit',
'#value' => t('Add to Cart'),

Loading…
Cancel
Save