CRM-14106 - Regex targeting the first part of if statements
[civicrm-core.git] / CRM / Core / SelectValues.php
index 877f00982a4a81f91aee9f577b1e6a2344791724..c7b96f54d635e884bb8dd8bee98f96ec0744c472 100644 (file)
@@ -363,7 +363,7 @@ class CRM_Core_SelectValues {
         $date['emptyOptionValue'] = '';
       }
 
-      if (!CRM_Utils_Array::value('format', $date)) {
+      if (empty($date['format'])) {
         $date['format'] = 'M d';
       }
     }