@@ 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 |
@@ 356-366 (lines=11) @@ | ||
353 | $this->_body(), |
|
354 | $this->_headers() |
|
355 | ); |
|
356 | if ( ! $success ) { |
|
357 | EE_Error::add_error( |
|
358 | sprintf( |
|
359 | __( 'The email did not send successfully. The WordPress wp_mail function is used for sending mails but does not give any useful information when an email fails to send. |
|
360 | It is possible the "to" address (%s) or "from" address (%s) is invalid.', 'event_espresso'), |
|
361 | $this->_to, |
|
362 | $this->_from |
|
363 | ), |
|
364 | __FILE__, __FUNCTION__, __LINE__ |
|
365 | ); |
|
366 | } |
|
367 | return $success; |
|
368 | } |
|
369 |