Fix PHP notice when validating profile forms with action "delete"
This commit is contained in:
parent
08e9418766
commit
f746a3fe06
1 changed files with 47 additions and 45 deletions
|
@ -364,6 +364,7 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
|
|||
|
||||
// Validate custom field mapping.
|
||||
try {
|
||||
if (isset($values['custom_field_mapping'])) {
|
||||
$custom_field_mapping = preg_split('/\r\n|\r|\n/', $values['custom_field_mapping'], -1, PREG_SPLIT_NO_EMPTY);
|
||||
if (!is_array($custom_field_mapping)) {
|
||||
throw new Exception(
|
||||
|
@ -419,6 +420,7 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception $exception) {
|
||||
$errors['custom_field_mapping'] = $exception->getMessage();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue