'x ?: y' is a new PHP thing?

This commit is contained in:
Shish 2014-03-06 09:14:03 +00:00
parent 134f9082fd
commit faec25226a

View File

@ -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);
}
/**