diff --git a/library/includes/functions_upload.php b/library/includes/functions_upload.php index 467bc24d..04683bff 100644 --- a/library/includes/functions_upload.php +++ b/library/includes/functions_upload.php @@ -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])) + if (!$width || !$height || !$type || !isset($this->img_types[$type]) || !isset($this->ext_ids[$this->img_types[$type]])) { $this->errors[] = $lang['UPLOAD_ERROR_FORMAT']; return false;