|
|
@@ -36,11 +36,12 @@ class BxMailchimpAlerts extends BxDolAlertsResponse
|
|
|
$oProfile = BxDolProfile::getInstance($o->iObject);
|
|
|
$oAccount = $oProfile ? $oProfile->getAccountObject() : null;
|
|
|
|
|
|
- if ($oAccount)
|
|
|
+ if ($oAccount) {
|
|
|
if ('delete' == $o->sAction && isset($o->aExtras['type']) && 'system' == $o->aExtras['type'])
|
|
|
$this->_oModule->serviceRemoveAccount($oAccount->id());
|
|
|
else
|
|
|
$this->_oModule->serviceUpdateAccount($oAccount->id());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|