diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index ea85ac448d1..f70e96c7857 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -3223,5 +3223,4 @@ abstract class CommonObject print ''; } } -?> - +?> \ No newline at end of file diff --git a/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php b/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php index 03c6b9dbbd2..c5cca188226 100644 --- a/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php +++ b/htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php @@ -137,9 +137,9 @@ class InterfaceMailmanSpipsynchro dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); } - elseif ($action == 'CATEGORY_LINK') - { - dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); + elseif ($action == 'CATEGORY_LINK') + { + dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); // We add subscription if new email or new type (new type may means more mailing-list to subscribe) if ($object->linkto->add_to_abo() < 0) @@ -153,12 +153,12 @@ class InterfaceMailmanSpipsynchro $return=1; } - return $return; - } - elseif ($action == 'CATEGORY_UNLINK') - { - dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); - + return $return; + } + elseif ($action == 'CATEGORY_UNLINK') + { + dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); + if ($object->unlinkoff->del_to_abo() < 0) { $this->error=$object->unlinkoff->error; @@ -169,9 +169,9 @@ class InterfaceMailmanSpipsynchro { $return=1; } - - return $return; - } + + return $return; + } // Members elseif ($action == 'MEMBER_VALIDATE' || $action == 'MEMBER_MODIFY')