From de79cc20040ca5185cd73ff9f4b7f6541b745a5a Mon Sep 17 00:00:00 2001 From: lat9 Date: Tue, 2 Apr 2024 12:37:42 -0400 Subject: [PATCH] Use `zen_get_products_name` on listings Fixes #6367 --- includes/modules/product_listing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/modules/product_listing.php b/includes/modules/product_listing.php index d281bb814a..4aca9096e4 100644 --- a/includes/modules/product_listing.php +++ b/includes/modules/product_listing.php @@ -216,7 +216,7 @@ $lc_text = ''; $href = zen_href_link(zen_get_info_page($record['products_id']), 'cPath=' . zen_get_generated_category_path_rev($linkCpath) . '&products_id=' . $record['products_id']); - $listing_product_name = $record['products_name'] ?? ''; + $listing_product_name = zen_get_products_name((int)$record['products_id']); $listing_description = ''; if ((int)PRODUCT_LIST_DESCRIPTION > 0) { $listing_description = zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($record['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION);