Skip to content

Commit

Permalink
Variable $shippingAddress might not be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Dec 11, 2023
1 parent 2618e93 commit 1235e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ protected function insertOrder(&$page, $obj, $putOrderId = true)

if (!$order->getIsVirtual()) {
$this->y = $addressesStartY;
if ($shippingAddress) {
if (isset($shippingAddress) and is_iterable($shippingAddress)) {
foreach ($shippingAddress as $value) {
if ($value !== '') {
$text = [];
Expand Down

0 comments on commit 1235e78

Please sign in to comment.