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; } /**