diff --git a/admin/send_emailqueue.php b/admin/send_emailqueue.php index 458bceb..f983759 100644 --- a/admin/send_emailqueue.php +++ b/admin/send_emailqueue.php @@ -32,7 +32,7 @@ if(!$config['emailqueue_lock']) { //loop forever, but not really, it'll get break'd as soon as there's nothing left to send while(true) { - $q=mysql_query("SELECT * FROM emailqueue_recipients WHERE sent IS NULL LIMIT 1"); + $q=mysql_query("SELECT * FROM emailqueue_recipients WHERE sent IS NULL AND result IS NULL LIMIT 1"); if(mysql_num_rows($q)) { $r=mysql_fetch_object($q); $eq=mysql_query("SELECT * FROM emailqueue WHERE id='$r->emailqueue_id'");