Skip to content

Commit

Permalink
Change gift tax rules group validation condition to be more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
rokaszygmantas committed May 14, 2018
1 parent 7586208 commit fe91e8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function setData(array $data)
}

// If gift wrapping tax rules group was not submitted - reset it to 0
if (!$data['gift_options']['gift_wrapping_tax_rules_group']) {
if (!isset($data['gift_options']['gift_wrapping_tax_rules_group'])) {
$data['gift_options']['gift_wrapping_tax_rules_group'] = 0;
}

Expand Down

0 comments on commit fe91e8d

Please sign in to comment.