Fixed: Undefined Index Issue for Cover Image

This commit is contained in:
vishalsingh.qlo325
2024-08-20 09:46:29 +05:30
parent 3090c2f684
commit bd90e4f8af

View File

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