X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPage%2FFile.php;h=0ad98467e8b5d5b3f510c257375399ffcfa3b2b9;hb=64aa560db1b9afecf26162220cf0eb8153ff5a11;hp=a36d8975ee64aae91dcf3dedf4e759b71207a416;hpb=eda4c5942ca6c0f3f394957acac921b9d3d9854e;p=civicrm-core.git diff --git a/CRM/Core/Page/File.php b/CRM/Core/Page/File.php index a36d8975ee..0ad98467e8 100644 --- a/CRM/Core/Page/File.php +++ b/CRM/Core/Page/File.php @@ -124,7 +124,7 @@ class CRM_Core_Page_File extends CRM_Core_Page { 'image/pjpeg' => 'image/jpeg', ]; - return isset($badTypes[$type]) ? $badTypes[$type] : $type; + return $badTypes[$type] ?? $type; } }