| @@ 327-330 (lines=4) @@ | ||
| 324 | $success = true; | |
| 325 | } | |
| 326 | ||
| 327 | 		if ( $this->_total_update_errors > 0 ) { | |
| 328 | 			EE_Error::add_error(sprintf(__("'One or more errors occurred, and a total of %s existing records in the database were <strong>not</strong> updated.'", "event_espresso"),$this->_total_update_errors), __FILE__, __FUNCTION__, __LINE__ ); | |
| 329 | $error = true; | |
| 330 | } | |
| 331 | 		if ( $this->_total_insert_errors > 0 ) { | |
| 332 | 			EE_Error::add_error(sprintf(__("One or more errors occurred, and a total of %s new records were <strong>not</strong> added to the database.'", "event_espresso"),$this->_total_insert_errors), __FILE__, __FUNCTION__, __LINE__ ); | |
| 333 | $error = true; | |
| @@ 331-334 (lines=4) @@ | ||
| 328 | 			EE_Error::add_error(sprintf(__("'One or more errors occurred, and a total of %s existing records in the database were <strong>not</strong> updated.'", "event_espresso"),$this->_total_update_errors), __FILE__, __FUNCTION__, __LINE__ ); | |
| 329 | $error = true; | |
| 330 | } | |
| 331 | 		if ( $this->_total_insert_errors > 0 ) { | |
| 332 | 			EE_Error::add_error(sprintf(__("One or more errors occurred, and a total of %s new records were <strong>not</strong> added to the database.'", "event_espresso"),$this->_total_insert_errors), __FILE__, __FUNCTION__, __LINE__ ); | |
| 333 | $error = true; | |
| 334 | } | |
| 335 | ||
| 336 | //lastly, we need to update the datetime and ticket sold amounts | |
| 337 | //as those may ahve been affected by this | |
| @@ 358-368 (lines=11) @@ | ||
| 355 | $this->_body(), | |
| 356 | $this->_headers() | |
| 357 | ); | |
| 358 | 		if ( ! $success ) { | |
| 359 | EE_Error::add_error( | |
| 360 | sprintf( | |
| 361 | __( 'The email did not send successfully.%3$sThe WordPress wp_mail function is used for sending mails but does not give any useful information when an email fails to send.%3$sIt is possible the "to" address (%1$s) or "from" address (%2$s) is invalid.%3$s', 'event_espresso'), | |
| 362 | $this->_to, | |
| 363 | $this->_from, | |
| 364 | '<br />' | |
| 365 | ), | |
| 366 | __FILE__, __FUNCTION__, __LINE__ | |
| 367 | ); | |
| 368 | } | |
| 369 | return $success; | |
| 370 | } | |
| 371 | ||