Update fraise.modules.php

This commit is contained in:
ptibogxiv 2017-11-27 17:08:15 +01:00 committed by GitHub
parent 0a5a50263d
commit ea9071512d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ class mailing_fraise extends MailingTargets
global $conf,$langs;
$langs->load("members");
.
// Array for requests for statistics board
$statssql=array();
@ -92,7 +92,7 @@ class mailing_fraise extends MailingTargets
global $conf;
$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 aentity IN (".getEntity('member').")";
$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