// fixed #PSTEST-142

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11675 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-12-22 19:21:52 +00:00
parent 8f8c1e705c
commit 7bac43b93c
+3 -2
View File
@@ -230,7 +230,7 @@ class AdminControllerCore extends Controller
protected $_redirect = true;
/** @var array Name and directory where class image are located */
public $fieldImageSettings = null;
public $fieldImageSettings = array();
/** @var string Image type */
public $imageType = 'jpg';
@@ -544,7 +544,7 @@ class AdminControllerCore extends Controller
{
if ($this->deleted)
{
if (isset($this->fieldImageSettings))
if (!empty($this->fieldImageSettings))
$res = $object->deleteImage();
if (!$res)
@@ -2310,6 +2310,7 @@ class AdminControllerCore extends Controller
foreach ($row as $id_shop => $value)
$assos[] = array('id_object' => (int)$id_asso_object, 'id_'.$type => (int)$id_shop);
}
return array($assos, $type);
}