mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-13 00:42:08 +08:00
Fix #209 and #258 Was worked on PHP 7 and failed on PHP 8. Now works on both PHP 7 and PHP 8.
This commit is contained in:
parent
cce3b3e3f9
commit
bf759c0597
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ if (isset($_POST['campaign_id']) && !empty($_POST['campaign_id'])) {
|
|||
} elseif (preg_match('/^' . $optInPrefix . '/', $k)) {
|
||||
$optInEmailFields[] = substr($k, strlen($optInPrefix));
|
||||
} else {
|
||||
if (array_key_exists($k, $person) || array_key_exists($k, $person->field_defs)) {
|
||||
if (property_exists($person, $k) || array_key_exists($k, $person->field_defs)) {
|
||||
if (in_array($k, $possiblePersonCaptureFields)) {
|
||||
if (is_array($v)) {
|
||||
$v = encodeMultienumValue($v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue