From faec25226aa8a62d5db79d3a0235f7447ac3cea3 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 6 Mar 2014 09:14:03 +0000 Subject: [PATCH] 'x ?: y' is a new PHP thing? --- 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 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); } /**