From bd90e4f8afe4fccdeaa33ebf8b9bd914ab38c8c0 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 20 Aug 2024 09:46:29 +0530 Subject: [PATCH] Fixed: Undefined Index Issue for Cover Image --- classes/Product.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/classes/Product.php b/classes/Product.php index d001c4ea2..1286db158 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -5739,8 +5739,11 @@ class ProductCore extends ObjectModel */ public function getCoverWs() { - $result = $this->getCover($this->id); - return $result['id_image']; + if ($result = $this->getCover($this->id)) { + return $result['id_image']; + } + + return false; } /**