Skip to content

Commit

Permalink
Update app/code/core/Mage/Rule/Model/Condition/Combine.php
Browse files Browse the repository at this point in the history
Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>
  • Loading branch information
sreichel and kiatng authored Sep 9, 2022
1 parent 4cc318a commit 4388124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/core/Mage/Rule/Model/Condition/Combine.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ public function asXml($containerKey = 'conditions', $itemKey = 'condition')
*/
public function loadArray($arr, $key = 'conditions')
{
$this->setAggregator($arr['aggregator'] ?? ($arr['attribute'] ?? null))
->setValue($arr['value'] ?? ($arr['operator'] ?? null));
$this->setAggregator($arr['aggregator'] ?? $arr['attribute'] ?? null)
->setValue($arr['value'] ?? $arr['operator'] ?? null);

if (!empty($arr[$key]) && is_array($arr[$key])) {
foreach ($arr[$key] as $condArr) {
Expand Down

0 comments on commit 4388124

Please sign in to comment.