Skip to content

Commit

Permalink
Merge pull request #4931 from torvista/addresses
Browse files Browse the repository at this point in the history
admin, customers, addresses: parameter passed to zen_get_customers_address_primary must be integer
  • Loading branch information
scottcwilson committed Jun 29, 2022
2 parents 3c0e534 + 8dfe1cf commit 00e0706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/customers.php
Expand Up @@ -656,7 +656,7 @@ function check_form() {
*/
foreach ($addressArray as $addresses) {
?>
<h3 class="addressBookDefaultName"><?php echo zen_output_string_protected($addresses['firstname'] . ' ' . $addresses['lastname']); ?><?php echo ($addresses['address_book_id'] == zen_get_customers_address_primary($_GET['cID']) ? '&nbsp;' . PRIMARY_ADDRESS : ''); ?></h3>
<h3 class="addressBookDefaultName"><?php echo zen_output_string_protected($addresses['firstname'] . ' ' . $addresses['lastname']); ?><?php echo ((int)$addresses['address_book_id'] === zen_get_customers_address_primary((int)$_GET['cID']) ? '&nbsp;' . PRIMARY_ADDRESS : ''); ?></h3>
<address><?php echo zen_address_format($addresses['format_id'], $addresses['address'], true, ' ', '<br>'); ?></address>

<br class="clearBoth">
Expand Down

0 comments on commit 00e0706

Please sign in to comment.