From 4dbdd62137462402808147c9840362341eff9092 Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Wed, 2 Jan 2008 16:43:35 +0000 Subject: clean up output when sending queue to be a simple text dump to browser --- BitMailer.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'BitMailer.php') diff --git a/BitMailer.php b/BitMailer.php index 170f846..7e5ece6 100644 --- a/BitMailer.php +++ b/BitMailer.php @@ -1,12 +1,12 @@ * - * @version $Revision: 1.38 $ $Date: 2007/05/17 05:26:58 $ $Author: spiderr $ + * @version $Revision: 1.39 $ $Date: 2008/01/02 16:43:35 $ $Author: spiderr $ */ /** @@ -185,6 +185,7 @@ class BitMailer { } else { $updateQuery = "UPDATE `".BIT_DB_PREFIX."mail_queue` SET `mail_error`=?,`sent_date`=? WHERE `content_id`=? AND `email`=?"; $this->mDb->query( $updateQuery, array( $mailer->ErrorInfo, time(), $pick['content_id'], $pick['email'] ) ); + $pick['error'] = $mailer->ErrorInfo; $this->logError( $pick ); } } @@ -203,11 +204,11 @@ class BitMailer { $store['user_id'] = !empty( $pInfo['user_id'] ) ? $pInfo['user_id'] : NULL; $store['content_id'] = !empty( $pInfo['content_id'] ) ? $pInfo['content_id'] : NULL; $store['email'] = !empty( $pInfo['email'] ) ? $pInfo['email'] : NULL; - $store['error_message'] = $this->ErrorInfo; + $store['error_message'] = $pInfo['error']; $store['error_date'] = time(); $this->mDb->associateInsert( BIT_DB_PREFIX."mail_errors", $store ); } - print "ERROR: ".$this->ErrorInfo."\n"; + print "ERROR: ".$pInfo['error']."\n"; } // Looks up the code from the url to determine if the unsubscribe URL is valid. -- cgit v1.3