Update card.php
Line 714 - conditional to delete thirdparty logos $object->photo does not exits, and should read $object->logo This appears to be an oversight, as it is correct in the rest of the file
This commit is contained in:
parent
d8d4d15b4b
commit
475297b98b
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user