| @@ 914-925 (lines=12) @@ | ||
| 911 | ); |
|
| 912 | } |
|
| 913 | } |
|
| 914 | } else { |
|
| 915 | if ( $show_errors ) { |
|
| 916 | EE_Error::add_error( |
|
| 917 | sprintf( |
|
| 918 | '%1$s||%1$s $attendee = %2$s', |
|
| 919 | __( 'Either no Attendee information was found, or an invalid Attendee object was discovered when attempting to save your registration information.', 'event_espresso' ), |
|
| 920 | var_export( $registration->attendee(), true ) |
|
| 921 | ), |
|
| 922 | __FILE__, __FUNCTION__, __LINE__ |
|
| 923 | ); |
|
| 924 | } |
|
| 925 | } |
|
| 926 | } |
|
| 927 | ||
| 928 | ||
| @@ 1019-1022 (lines=4) @@ | ||
| 1016 | // add relation to registration, set attendee ID, and cache attendee |
|
| 1017 | $this->_associate_attendee_with_registration( $registration, $attendee ); |
|
| 1018 | // \EEH_Debug_Tools::printr( $registration, '$registration', __FILE__, __LINE__ ); |
|
| 1019 | if ( ! $registration->attendee() instanceof EE_Attendee ) { |
|
| 1020 | EE_Error::add_error( sprintf( __( 'Registration %s has an invalid or missing Attendee object.', 'event_espresso' ), $reg_url_link ), __FILE__, __FUNCTION__, __LINE__ ); |
|
| 1021 | return false; |
|
| 1022 | } |
|
| 1023 | /** @type EE_Registration_Processor $registration_processor */ |
|
| 1024 | $registration_processor = EE_Registry::instance()->load_class( 'Registration_Processor' ); |
|
| 1025 | // at this point, we should have enough details about the registrant to consider the registration NOT incomplete |
|