summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2008-01-02 16:43:35 +0000
committerChristian Fowler <spider@viovio.com>2008-01-02 16:43:35 +0000
commit4dbdd62137462402808147c9840362341eff9092 (patch)
treebbe39faee853e41b8cdb536f72a1453854726c46 /admin
parentc2843d3a566d392fb08cf284921f7188de7ba14d (diff)
downloadnewsletters-4dbdd62137462402808147c9840362341eff9092.tar.gz
newsletters-4dbdd62137462402808147c9840362341eff9092.tar.bz2
newsletters-4dbdd62137462402808147c9840362341eff9092.zip
clean up output when sending queue to be a simple text dump to browser
Diffstat (limited to 'admin')
-rw-r--r--admin/mail_queue.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/admin/mail_queue.php b/admin/mail_queue.php
index 671249a..240c0f4 100644
--- a/admin/mail_queue.php
+++ b/admin/mail_queue.php
@@ -1,6 +1,6 @@
<?php
-if( $_REQUEST['batch_command'] == 'send' && !empty( $_REQUEST['queue_id'] ) ) {
+if( !empty( $_REQUEST['batch_command'] ) && $_REQUEST['batch_command'] == 'send' && !empty( $_REQUEST['queue_id'] ) ) {
$_REQUEST['uri_mode'] = TRUE;
}
@@ -25,10 +25,11 @@ if( !empty( $_REQUEST['batch_command'] ) && !empty( $_REQUEST['queue_id'] ) ) {
}
}
-$listHash = array();
-$queue = $gBitMailer->getQueue( $listHash );
-$gBitSmarty->assign_by_ref( 'queue', $queue );
-
-$gBitSystem->display( 'bitpackage:newsletters/mail_queue.tpl' );
+if( empty( $_REQUEST['batch_command'] ) || $_REQUEST['batch_command'] != 'send' ) {
+ $listHash = array();
+ $queue = $gBitMailer->getQueue( $listHash );
+ $gBitSmarty->assign_by_ref( 'queue', $queue );
+ $gBitSystem->display( 'bitpackage:newsletters/mail_queue.tpl' );
+}
?>