Fixed: Undefined Index Issue for Cover Image
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user