From c92de3117fc6062755f14f7f3f3e3b79b2f630f3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 28 Mar 2024 14:38:43 +0100 Subject: [PATCH] Fix var not found --- .../interface_50_modMailmanspip_Mailmanspipsynchro.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php b/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php index 17312704156..e964f1e9176 100644 --- a/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php +++ b/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php @@ -118,7 +118,7 @@ class InterfaceMailmanSpipsynchro extends DolibarrTriggers if (($object->oldcopy->email != $object->email) || ($object->oldcopy->typeid != $object->typeid)) { if (is_object($object->oldcopy) && (($object->oldcopy->email != $object->email) || ($object->oldcopy->typeid != $object->typeid))) { // If email has changed or if list has changed we delete mailman subscription for old email // $object->oldcopy may be a stdClass and not original object depending on copy type, so we realod a new object to run the del_to_abo() - $tmpmember = new Adherent($db); + $tmpmember = new Adherent($this->db); $tmpmember->fetch($object->oldcopy->id); if ($tmpmember->del_to_abo() < 0) { $this->errors = $tmpmember->errors;