summaryrefslogtreecommitdiff
path: root/BitMailer.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2005-12-28 23:43:24 +0000
committerChristian Fowler <spider@viovio.com>2005-12-28 23:43:24 +0000
commit522af529d05393e3e369fc6e4d498ca5f172a8a9 (patch)
tree26c32b6436eb588d84267aee6eefa83c5981c3ff /BitMailer.php
parentc07dc79add21f2677680fcc9736b82276d2f8a72 (diff)
downloadnewsletters-522af529d05393e3e369fc6e4d498ca5f172a8a9.tar.gz
newsletters-522af529d05393e3e369fc6e4d498ca5f172a8a9.tar.bz2
newsletters-522af529d05393e3e369fc6e4d498ca5f172a8a9.zip
subscription changing appears to be working
Diffstat (limited to 'BitMailer.php')
-rw-r--r--BitMailer.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/BitMailer.php b/BitMailer.php
index 10ac4c5..d672058 100644
--- a/BitMailer.php
+++ b/BitMailer.php
@@ -1,12 +1,12 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_newsletters/Attic/BitMailer.php,v 1.8 2005/12/28 23:21:24 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_newsletters/Attic/BitMailer.php,v 1.9 2005/12/28 23:43:24 spiderr Exp $
*
* Copyright (c) 2004 bitweaver.org
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: BitMailer.php,v 1.8 2005/12/28 23:21:24 spiderr Exp $
+ * $Id: BitMailer.php,v 1.9 2005/12/28 23:43:24 spiderr Exp $
*
* Class that handles editions of newsletters
* @package newsletters
@@ -15,7 +15,7 @@
*
* @author spiderr <spider@steelsun.com>
*
- * @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;
}