[-] BO : fixed potential warning with texture list #PSCFV-9050
This commit is contained in:
@@ -686,7 +686,11 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
foreach ($this->_list as &$list)
|
foreach ($this->_list as &$list)
|
||||||
if (file_exists(_PS_IMG_DIR_.$this->fieldImageSettings['dir'].'/'.(int)$list['id_attribute'].'.jpg'))
|
if (file_exists(_PS_IMG_DIR_.$this->fieldImageSettings['dir'].'/'.(int)$list['id_attribute'].'.jpg'))
|
||||||
|
{
|
||||||
|
if (!isset($list['color']) || !is_array($list['color']))
|
||||||
|
$list['color'] = array();
|
||||||
$list['color']['texture'] = '../img/'.$this->fieldImageSettings['dir'].'/'.(int)$list['id_attribute'].'.jpg';
|
$list['color']['texture'] = '../img/'.$this->fieldImageSettings['dir'].'/'.(int)$list['id_attribute'].'.jpg';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user