From 4ea721f681f8a7b02f4af0ddbecdffe96118a38f Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 21 Sep 2017 14:04:53 +0100 Subject: [PATCH] underp --- core/util.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util.inc.php b/core/util.inc.php index f60c263e..43863383 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -715,7 +715,7 @@ function getMimeType(string $file, string $ext=""): string { // Static extension lookup $ext = strtolower($ext); - if (isset($exts[$ext])) { return MIME_TYPE_MAP[$ext]; } + if (isset(MIME_TYPE_MAP[$ext])) { return MIME_TYPE_MAP[$ext]; } $type = false; // Fileinfo documentation says fileinfo_open() will use the