From 522af529d05393e3e369fc6e4d498ca5f172a8a9 Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Wed, 28 Dec 2005 23:43:24 +0000 Subject: subscription changing appears to be working --- BitMailer.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'BitMailer.php') diff --git a/BitMailer.php b/BitMailer.php index 10ac4c5..d672058 100644 --- a/BitMailer.php +++ b/BitMailer.php @@ -1,12 +1,12 @@ * - * @version $Revision: 1.8 $ $Date: 2005/12/28 23:21:24 $ $Author: spiderr $ + * @version $Revision: 1.9 $ $Date: 2005/12/28 23:43:24 $ $Author: spiderr $ */ /** @@ -182,10 +182,11 @@ class BitMailer extends phpmailer { } function storeSubscriptions( $pSubHash ) { + $ret = FALSE; global $gBitSystem, $gBitDb; $query = "delete from `".BIT_DB_PREFIX."tiki_mail_subscriptions` where `".key( $pSubHash['sub_lookup'] )."`=?"; $result = $gBitDb->query($query, array( current( $pSubHash['sub_lookup'] ) ) ); - + $ret = TRUE; if( !empty( $pSubHash['unsub_content'] ) ) { foreach( $pSubHash['unsub_content'] as $conId ) { $storeHash = array(); @@ -199,6 +200,7 @@ class BitMailer extends phpmailer { $gBitDb->associateInsert( BIT_DB_PREFIX."tiki_mail_subscriptions", $storeHash ); } } + return $ret; } -- cgit v1.3