X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fmassmailer.inc.php;h=07d9ee6ca295791e6fb29ad9c201ca97b87ab37d;hb=ecf5b78a50fe968e5f6e8b662c0548cacccec879;hp=af9a5bd1b4455420869c2f6cfadfa62b04f73ddf;hpb=3ad44e0807c527bacd69b6260aa0f41fa973be68;p=platal.git diff --git a/include/massmailer.inc.php b/include/massmailer.inc.php index af9a5bd..07d9ee6 100644 --- a/include/massmailer.inc.php +++ b/include/massmailer.inc.php @@ -1,6 +1,6 @@ _table} AS n WHERE n.bits != 'new' AND {$where} - LIMIT 1"); + LIMIT 1"); if ($res->numRows() != 1) { return null; } @@ -108,7 +108,7 @@ abstract class MassMailer public function head($prenom = null, $nom = null, $sexe = null, $type = 'text') { if (is_null($prenom)) { - return $this->_head; + return $this->_head; } else { $head = $this->_head; $head = str_replace('', $sexe ? 'Chère' : 'Cher', $head); @@ -204,7 +204,7 @@ abstract class MassMailer XDB::execute("UPDATE {$this->_subscriptionTable} SET last = {?} WHERE " . implode(' OR ', $sent), $this->_id); - + sleep(60); } }