projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CRM-14106 - Regex targeting the first part of if statements
[civicrm-core.git]
/
CRM
/
Contact
/
Form
/
Edit
/
CustomData.php
diff --git
a/CRM/Contact/Form/Edit/CustomData.php
b/CRM/Contact/Form/Edit/CustomData.php
index 962b461079cf68d50c2f7bc3a0680428f0c02728..6bbaf902a67e40a81adf6cbeed47933424093b21 100644
(file)
--- a/
CRM/Contact/Form/Edit/CustomData.php
+++ b/
CRM/Contact/Form/Edit/CustomData.php
@@
-89,7
+89,7
@@
class CRM_Contact_Form_Edit_CustomData {
//build custom data.
$contactSubType = NULL;
- if (
CRM_Utils_Array::value("hidden_custom", $_POST
) &&
+ if (
!empty($_POST["hidden_custom"]
) &&
CRM_Utils_Array::value('contact_sub_type', $_POST)
) {
$contactSubType = $_POST['contact_sub_type'];