projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09e6644
)
Fix potential undefined array index
author
Coleman Watts
<coleman@civicrm.org>
Sun, 8 Jul 2018 16:23:53 +0000
(12:23 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Sun, 8 Jul 2018 16:23:53 +0000
(12:23 -0400)
CRM/Core/BAO/UFField.php
patch
|
blob
|
blame
|
history
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']);
}