diff --git a/core/util.inc.php b/core/util.inc.php index a4c5b244..4c6e40f4 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -567,7 +567,7 @@ function getExtension ($mime_type){ $extensions = getMimeType(null, null, true); $ext = array_search($mime_type, $extensions); - return ($ext ?: false); + return ($ext ? $ext : false); } /**