Skip to content

Commit

Permalink
https://github.com/thehcginstitute-com/m1/issues/641
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 8, 2024
1 parent 5dfc614 commit 6c3f8c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/code/local/HCG/MailChimp/Cfg.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ final class Cfg {
* @used-by hcg_mc_cfg_scope()
*/
static function isExtraEntry(C $c, string $s, int $sid, int $wid):bool {
$cS = $c->getScope(); /** @var string $cS */
$cSid = (int)$c->getScopeId(); /** @var int$cSid */
return $cSid && (
F::SCOPE_STORES === $c->getScope() && $s !== $c->getScope()
|| F::SCOPE_WEBSITES === $c->getScope() && F::SCOPE_STORES === $s && $wid !== $cSid
|| F::SCOPE_STORES === $c->getScope() && F::SCOPE_STORES === $s && $sid !== $cSid
F::SCOPE_STORES === $cS && $s !== $cS
|| F::SCOPE_WEBSITES === $cS && F::SCOPE_STORES === $s && $wid !== $cSid
|| F::SCOPE_STORES === $cS && F::SCOPE_STORES === $s && $sid !== $cSid
);
}
}

0 comments on commit 6c3f8c0

Please sign in to comment.