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 72a9c98 commit 7c6fe9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 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,11 @@ final class Cfg {
* @used-by self::getApiByMailChimpStoreId()
* @used-by HCG\MailChimp\Tags\ProcessMergeFields::_addSubscriberData()
*/
static function firstScopeFromConfig(string $path, string $value):?array {
static function firstScopeFromConfig(string $p, string $v):?array {
$r = null; /** @var ?array(string => mixed) $r */
$collection = df_config_c()
->addFieldToFilter('path', ['eq' => $path])
->addFieldToFilter('value', ['eq' => $value])
->addFieldToFilter('path', ['eq' => $p])
->addFieldToFilter('value', ['eq' => $v])
->setPageSize(1);
if ($collection->getSize()) {
$configEntry = $collection->getLastItem();
Expand Down

0 comments on commit 7c6fe9d

Please sign in to comment.