Merge pull request #15435 from MegaphoneJon/reporting-21
[civicrm-core.git] / CRM / Core / Page / File.php
index a36d8975ee64aae91dcf3dedf4e759b71207a416..0ad98467e8b5d5b3f510c257375399ffcfa3b2b9 100644 (file)
@@ -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;
   }
 
 }