diff --git a/upgrade/Upgrade-5.4.3.php b/upgrade/Upgrade-5.4.3.php index 568dec529..865f9b6c9 100644 --- a/upgrade/Upgrade-5.4.3.php +++ b/upgrade/Upgrade-5.4.3.php @@ -159,6 +159,8 @@ function updateOrderStatusNames543(Mollie $module) foreach ($authorizablePaymentStatusShipped->name as $langId => $name) { $authorizablePaymentStatusShipped->name[$langId] = 'Order payment shipped'; } + } else { + $authorizablePaymentStatusShipped->name = 'Order payment shipped'; } $authorizablePaymentStatusShipped->save(); @@ -170,6 +172,8 @@ function updateOrderStatusNames543(Mollie $module) foreach ($authorizablePaymentStatusAuthorized->name as $langId => $name) { $authorizablePaymentStatusAuthorized->name[$langId] = 'Order payment authorized'; } + } else { + $authorizablePaymentStatusAuthorized->name = 'Order payment authorized'; } $authorizablePaymentStatusAuthorized->save();