Merge pull request #8897 from areaeuro/patch-3

FIX Delete thirdparty logo
This commit is contained in:
Laurent Destailleur 2018-06-04 12:19:41 +02:00 committed by GitHub
commit 536e8297c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -711,7 +711,7 @@ if (empty($reshook))
// Logo/Photo save
$dir = $conf->societe->multidir_output[$object->entity]."/".$object->id."/logos";
$file_OK = is_uploaded_file($_FILES['photo']['tmp_name']);
if (GETPOST('deletephoto') && $object->photo)
if (GETPOST('deletephoto') && $object->logo)
{
$fileimg=$dir.'/'.$object->logo;
$dirthumbs=$dir.'/thumbs';