Skip to content

Commit

Permalink
Fix PHP warning on order checkoout page
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-webkul committed Apr 17, 2023
1 parent dc06382 commit 4b9daf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -2911,8 +2911,9 @@ public function simulateCarriersOutput(Country $default_country = null, $flush =
if (isset($carrier['instance'])) {
$name = $carrier['instance']->name;
$delay = $carrier['instance']->delay;
$delay = isset($delay[Context::getContext()->language->id]) ?
$delay[Context::getContext()->language->id] : $delay[(int)Configuration::get('PS_LANG_DEFAULT')];
$delay = isset($delay[Context::getContext()->language->id]) ? $delay[Context::getContext()->language->id] :
(isset($delay[(int)Configuration::get('PS_LANG_DEFAULT')]) ? $delay[(int)Configuration::get('PS_LANG_DEFAULT')] : '');

}
if (isset($carrier['logo'])) {
$img = $carrier['logo'];
Expand Down

0 comments on commit 4b9daf7

Please sign in to comment.