[-] BO : fixed bug #PSCFI-1429 - Deleting products does not remove image files

This commit is contained in:
tDidierjean
2011-04-15 10:10:23 +00:00
parent 0d88112dfb
commit 0cca3ed290
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -472,7 +472,7 @@ abstract class AdminTabCore
{
$dir = null;
/* Deleting object images and thumbnails (cache) */
if (key_exists('dir', $this->fieldImageSettings) AND $this->fieldImageSettings['dir'].'/')
if (key_exists('dir', $this->fieldImageSettings))
{
$dir = $this->fieldImageSettings['dir'].'/';
if (file_exists(_PS_IMG_DIR_.$dir.$id.'.'.$this->imageType) AND !unlink(_PS_IMG_DIR_.$dir.$id.'.'.$this->imageType))