From 2af342c864321cce64f8183d45b63b57dcb8eff5 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 6 May 2013 09:27:03 +0200 Subject: [PATCH] [-] BO : fixed potential warning with texture list #PSCFV-9050 --- controllers/admin/AdminAttributesGroupsController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/admin/AdminAttributesGroupsController.php b/controllers/admin/AdminAttributesGroupsController.php index 26c53cc83..937d632e0 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -686,7 +686,11 @@ class AdminAttributesGroupsControllerCore extends AdminController { foreach ($this->_list as &$list) 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'; + } } else {