Merge pull request #10613 from frederic34/patch-23

Update interface_50_modMailmanspip_Mailmanspipsynchro.class.php
This commit is contained in:
Laurent Destailleur 2019-02-15 15:19:04 +01:00 committed by GitHub
commit c282ba76ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,8 +106,8 @@ class InterfaceMailmanSpipsynchro extends DolibarrTriggers
$return=0;
if ($object->add_to_abo() < 0)
{
if (! empty($object->error)) $this->error=$object->error;
$this->errors=$object->errors;
if (! empty($object->error)) $this->errors[]=$object->error;
$return=-1;
}
else
@ -129,8 +129,8 @@ class InterfaceMailmanSpipsynchro extends DolibarrTriggers
{
if ($object->oldcopy->del_to_abo() < 0)
{
if (! empty($object->oldcopy->error)) $this->error=$object->oldcopy->error;
$this->errors=$object->oldcopy->errors;
if (! empty($object->oldcopy->error)) $this->errors[]=$object->oldcopy->error;
$return=-1;
}
else
@ -141,8 +141,8 @@ class InterfaceMailmanSpipsynchro extends DolibarrTriggers
// We add subscription if new email or new type (new type may means more mailing-list to subscribe)
if ($object->add_to_abo() < 0)
{
if (! empty($object->error)) $this->error=$object->error;
$this->errors=$object->errors;
if (! empty($object->error)) $this->errors[]=$object->error;
$return=-1;
}
else
@ -161,8 +161,8 @@ class InterfaceMailmanSpipsynchro extends DolibarrTriggers
// Remove from external tools (mailman, spip, etc...)
if ($object->del_to_abo() < 0)
{
if (! empty($object->error)) $this->error=$object->error;
$this->errors=$object->errors;
if (! empty($object->error)) $this->errors[]=$object->error;
$return=-1;
}
else