Merge pull request #14981 from eileenmcnaughton/load_extract
[civicrm-core.git] / api / v3 / CustomField.php
index 0ac81d5e94518d8d4b013a4f0555b80fff1b018a..322f37104cb803503d1d4fc126a7b596296187bb 100644 (file)
@@ -242,9 +242,8 @@ SELECT count(*)
       break;
   }
 
-  if (in_array($htmlType, [
-    'Select', 'Multi-Select', 'CheckBox', 'Radio']) &&
-    !isset($errors[$fieldName])
+  if (in_array($htmlType, ['Select', 'Multi-Select', 'CheckBox', 'Radio'])
+    && !isset($errors[$fieldName])
   ) {
     $options = CRM_Core_OptionGroup::valuesByID($fieldDetails['option_group_id']);
     if (!is_array($value)) {