Skip to content

Commit

Permalink
fixing syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Sep 16, 2024
1 parent de6c517 commit 585b815
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions phalcon/Filter/Validation/Validator/File/MimeType.zep
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ class MimeType extends AbstractFile
}

if function_exists("finfo_open") {
let tmp = finfo_open(FILEINFO_MIME_TYPE),
let tmp = finfo_open(FILEINFO_MIME_TYPE);
if (tmp) {
mime = finfo_file(tmp, value["tmp_name"]);
let mime = finfo_file(tmp, value["tmp_name"]);
finfo_close(tmp);
}
};
}

if (!mime) {
let mime = value["type"];
Expand Down

0 comments on commit 585b815

Please sign in to comment.