Skip to content

Commit

Permalink
PES-2077: Fixed the error that occurs when the new settings option is…
Browse files Browse the repository at this point in the history
… not saved in the database. (#554)

Co-authored-by: David Belka <david.belka@yahoo.co.uk>
  • Loading branch information
jan-potuznik-z and DBelka committed May 31, 2024
1 parent 64196f9 commit dad29d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Packetery/Module/Options/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ public function isOrderStatusChangeAllowed(): bool {
* @return bool
*/
public function isWcCarrierConfigEnabled(): bool {
$isEnabled = $this->advancedData['new_carrier_settings_enabled'];
$isEnabled = ( $this->advancedData['new_carrier_settings_enabled'] ?? null );
if ( null !== $isEnabled ) {
return (bool) $isEnabled;
}
Expand Down

0 comments on commit dad29d9

Please sign in to comment.