Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into develop

This commit is contained in:
Laurent Destailleur 2012-06-14 16:48:36 +02:00
commit b1e934d853

View File

@ -73,6 +73,15 @@ if ($resql)
$msgishtml=-1; // Unknown by default
if (preg_match('/[\s\t]*<html>/i',$message)) $msgishtml=1;
// Set statut 9 (in progress) to avoid duplication
$sql="UPDATE ".MAIN_DB_PREFIX."mailing";
$sql.=" SET statut=9 WHERE rowid=".$id;
$resql3=$db->query($sql);
if (! $resql3)
{
dol_print_error($db);
}
$nbok=0; $nbko=0;
// On choisit les mails non deja envoyes pour ce mailing (statut=0)