Fix deleting logo/photo doesn't delete file from disk
This commit is contained in:
parent
8410298c7e
commit
9209c83054
@ -554,9 +554,7 @@ if (empty($reshook)) {
|
|||||||
}
|
}
|
||||||
//var_dump($object->array_languages);exit;
|
//var_dump($object->array_languages);exit;
|
||||||
|
|
||||||
if (GETPOST('deletephoto')) {
|
if (!empty($_FILES['photo']['name'])) {
|
||||||
$object->logo = '';
|
|
||||||
} elseif (!empty($_FILES['photo']['name'])) {
|
|
||||||
$object->logo = dol_sanitizeFileName($_FILES['photo']['name']);
|
$object->logo = dol_sanitizeFileName($_FILES['photo']['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user