remove unused var

This commit is contained in:
Dennis Eichhorn 2021-07-17 21:27:02 +02:00
parent 25f018795f
commit d4c79435dc

View File

@ -145,7 +145,7 @@ class UploadFile
return $result;
}
if (!empty($this->allowedTypes) && ($ext = \array_search($f['type'], $this->allowedTypes, true)) === false) {
if (!empty($this->allowedTypes) && \array_search($f['type'], $this->allowedTypes, true) === false) {
$result[$key]['status'] = UploadStatus::WRONG_EXTENSION;
return $result;