Skip to content

Commit

Permalink
Prevent access value in empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
lllHuber committed Apr 23, 2021
1 parent 263418d commit 0ae711f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
$order = $renderer->getRecipient();
$ret['items'] = $order->getProductsData();
foreach ($ret['items'] as &$r) {
if (!isset($r->additionalOrderData[0])) continue; // vouchers don't have additionalOrderData
$r->additionalOrderData[0]['name'] = $this->getData()->trlStaticExecute($r->additionalOrderData[0]['name']);
}

Expand Down

0 comments on commit 0ae711f

Please sign in to comment.