Fix potential undefined array index
authorColeman Watts <coleman@civicrm.org>
Sun, 8 Jul 2018 16:23:53 +0000 (12:23 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 8 Jul 2018 16:23:53 +0000 (12:23 -0400)
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']);
     }