FIX When an email was partially sent from GUI, it was not possible to

finish from CLI.
This commit is contained in:
Laurent Destailleur 2016-02-12 14:27:59 +01:00
parent 969314e731
commit e9ffbd1406

View File

@ -68,7 +68,7 @@ if (! empty($login)) $user->fetch('',$login);
$sql = "SELECT m.rowid, m.titre, m.sujet, m.body,";
$sql.= " m.email_from, m.email_replyto, m.email_errorsto";
$sql.= " FROM ".MAIN_DB_PREFIX."mailing as m";
$sql.= " WHERE m.statut = 1";
$sql.= " WHERE m.statut IN (1,2)";
if ($id != 'all')
{
$sql.= " AND m.rowid= ".$id;