mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-07 09:32:47 +01:00
fix hidden phpstan error (#26891)
This commit is contained in:
@@ -85,6 +85,8 @@ class mailing_thirdparties_services_expired extends MailingTargets
|
||||
*/
|
||||
public function add_to_target($mailing_id)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
// phpcs:enable
|
||||
$key = GETPOST('filter', 'int');
|
||||
|
||||
@@ -187,6 +189,8 @@ class mailing_thirdparties_services_expired extends MailingTargets
|
||||
*/
|
||||
public function getNbOfRecipients($sql = '')
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$now = dol_now();
|
||||
|
||||
// Example: return parent::getNbOfRecipients("SELECT count(*) as nb from dolibarr_table");
|
||||
|
||||
Reference in New Issue
Block a user