fix filemanager

This commit is contained in:
alejandro.campos@artica.es 2024-02-26 12:56:55 +01:00
parent e3f9d53775
commit 11a3d1f0c4
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ function upload_file($upload_file_or_zip, $default_real_directory, $destination_
// Copy file to directory and change name.
$nombre_archivo = sprintf('%s/%s', $real_directory, $filename);
try {
if (isset($_FILES['file']['type']) && empty($_FILES['file']['type']) === false) {
if (isset($_FILES['file']['type']) === true && empty($_FILES['file']['type']) === false) {
$type = $_FILES['file']['type'];
} else {
$type = strtolower(pathinfo($_FILES['file']['name'], PATHINFO_EXTENSION));