Skip to content

Commit

Permalink
Update fraise.modules.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Nov 27, 2017
1 parent 780e8ce commit a9e4fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/modules/mailings/fraise.modules.php
Expand Up @@ -73,7 +73,7 @@ function getSqlArrayForStats()
$statssql=array();

$statssql[0] ="SELECT '".$this->db->escape($langs->trans("FundationMembers"))."' as label, count(*) as nb";
$statssql[0].=" FROM ".MAIN_DB_PREFIX."adherent where statut = 1 and entity = ".$conf->entity;
$statssql[0].=" FROM ".MAIN_DB_PREFIX."adherent where statut = 1 and entity IN (".getEntity('member').")";

return $statssql;
}
Expand All @@ -93,7 +93,7 @@ function getNbOfRecipients($sql='')

$sql = "SELECT count(distinct(a.email)) as nb";
$sql .= " FROM ".MAIN_DB_PREFIX."adherent as a";
$sql .= " WHERE (a.email IS NOT NULL AND a.email != '') AND a.entity = ".$conf->entity;
$sql .= " WHERE (a.email IS NOT NULL AND a.email != '') AND a.entity IN (".getEntity('member').")";

// La requete doit retourner un champ "nb" pour etre comprise
// par parent::getNbOfRecipients
Expand Down

0 comments on commit a9e4fcf

Please sign in to comment.