Fix potential undefined array index
[civicrm-core.git] / CRM / Core / BAO / UFField.php
index eaac6c3ff1aefebc73234a3d710a9f63d9a9c47e..e3ce7a46b557c23ee8dc17f1dcd5fe2450f9e860 100644 (file)
@@ -896,7 +896,7 @@ SELECT  id
       'address_options', TRUE, NULL, TRUE
     );
 
-    if (!$addressOptions['county']) {
+    if (empty($addressOptions['county'])) {
       unset($fields['Individual']['county'], $fields['Household']['county'], $fields['Organization']['county']);
     }