Fix deleting logo/photo doesn't delete file from disk

This commit is contained in:
marc 2022-07-24 14:49:57 +02:00
parent 8410298c7e
commit 9209c83054

View File

@ -554,9 +554,7 @@ if (empty($reshook)) {
}
//var_dump($object->array_languages);exit;
if (GETPOST('deletephoto')) {
$object->logo = '';
} elseif (!empty($_FILES['photo']['name'])) {
if (!empty($_FILES['photo']['name'])) {
$object->logo = dol_sanitizeFileName($_FILES['photo']['name']);
}