Revert "Update functions_upload.php"

This reverts commit 7791723d95.
This commit is contained in:
Roman Kelesidis 2023-10-02 12:51:19 +07:00
parent 7791723d95
commit 50746497ac

View File

@ -91,7 +91,7 @@ class upload_common
list($width, $height, $type, $attr) = $img_info;
// redefine ext
if (!$width || !$height || !$type || !isset($this->img_types[$type]) || !isset($this->ext_ids[$this->img_types[$type]]))
if (!$width || !$height || !$type || !isset($this->img_types[$type]))
{
$this->errors[] = $lang['UPLOAD_ERROR_FORMAT'];
return false;