diff options
| author | Christian Fowler <spider@viovio.com> | 2008-01-02 16:43:35 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2008-01-02 16:43:35 +0000 |
| commit | 4dbdd62137462402808147c9840362341eff9092 (patch) | |
| tree | bbe39faee853e41b8cdb536f72a1453854726c46 /admin | |
| parent | c2843d3a566d392fb08cf284921f7188de7ba14d (diff) | |
| download | newsletters-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.php | 13 |
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' ); +} ?> |
