Fix: error sql
This commit is contained in:
parent
29600cddb9
commit
e02f581114
@ -137,14 +137,16 @@ class mailing_kiwi extends MailingTargets
|
|||||||
*/
|
*/
|
||||||
function getNbOfRecipients()
|
function getNbOfRecipients()
|
||||||
{
|
{
|
||||||
$sql = "SELECT count(distinct(s.email)) as nb";
|
global $conf;
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
|
|
||||||
$sql.= " WHERE s.email != ''";
|
$sql = "SELECT count(distinct(s.email)) as nb";
|
||||||
$sql.= " AND s.entity = ".$conf->entity;
|
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
|
||||||
|
$sql.= " WHERE s.email != ''";
|
||||||
|
$sql.= " AND s.entity = ".$conf->entity;
|
||||||
|
|
||||||
// La requete doit retourner un champ "nb" pour etre comprise
|
// La requete doit retourner un champ "nb" pour etre comprise
|
||||||
// par parent::getNbOfRecipients
|
// par parent::getNbOfRecipients
|
||||||
return parent::getNbOfRecipients($sql);
|
return parent::getNbOfRecipients($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user