projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix potential undefined array index
[civicrm-core.git]
/
CRM
/
Core
/
BAO
/
UFField.php
diff --git
a/CRM/Core/BAO/UFField.php
b/CRM/Core/BAO/UFField.php
index eaac6c3ff1aefebc73234a3d710a9f63d9a9c47e..e3ce7a46b557c23ee8dc17f1dcd5fe2450f9e860 100644
(file)
--- a/
CRM/Core/BAO/UFField.php
+++ b/
CRM/Core/BAO/UFField.php
@@
-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']);
}