'x ?: y' is a new PHP thing?
This commit is contained in:
parent
134f9082fd
commit
faec25226a
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user