Skip to content

Commit

Permalink
Fix property 'id' on null
Browse files Browse the repository at this point in the history
  • Loading branch information
a-v-l committed Feb 28, 2023
1 parent f0e565f commit c52adb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ protected function getAddressOptions($arrFields = null)
$arrOptions[] = [
'value' => $objAddress->id,
'label' => $objAddress->generate($arrFields),
'default' => $objAddress->id == $objDefault->id ? '1' : '',
'default' => $objAddress->id == ($objDefault->id ?? false) ? '1' : '',
];
}
}
Expand Down

0 comments on commit c52adb8

Please sign in to comment.