fix hidden phpstan error (#26889)

This commit is contained in:
Frédéric FRANCE 2023-11-30 17:45:41 +01:00 committed by GitHub
parent 046c89cfc7
commit 0f0d0e44fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,8 @@ class mailing_contacts1 extends MailingTargets
*/
public function getNbOfRecipients($sql = '')
{
global $conf;
$sql = "SELECT count(distinct(c.email)) as nb";
$sql .= " FROM ".MAIN_DB_PREFIX."socpeople as c";
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON s.rowid = c.fk_soc";