diff --git a/application/Espo/Repositories/EmailAddress.php b/application/Espo/Repositories/EmailAddress.php index fc8239dada..bbfda0baa8 100644 --- a/application/Espo/Repositories/EmailAddress.php +++ b/application/Espo/Repositories/EmailAddress.php @@ -344,12 +344,12 @@ class EmailAddress extends \Espo\Core\ORM\Repositories\RDB if (property_exists($hashPrevious, $key)) { $new = false; $changed = - $hash->{$key}['optOut'] != $hashPrevious->$key['optOut'] || - $hash->{$key}['invalid'] != $hashPrevious->$key['invalid'] || - $hash->{$key}['emailAddress'] !== $hashPrevious->$key['emailAddress']; + $hash->{$key}['optOut'] != $hashPrevious->{$key}['optOut'] || + $hash->{$key}['invalid'] != $hashPrevious->{$key}['invalid'] || + $hash->{$key}['emailAddress'] !== $hashPrevious->{$key}['emailAddress']; if ($hash->{$key}['primary']) { - if ($hash->{$key}['primary'] == $hashPrevious->$key['primary']) { + if ($hash->{$key}['primary'] == $hashPrevious->{$key}['primary']) { $primary = false; } } diff --git a/application/Espo/Repositories/PhoneNumber.php b/application/Espo/Repositories/PhoneNumber.php index 5419155b7d..5cbf8b3511 100644 --- a/application/Espo/Repositories/PhoneNumber.php +++ b/application/Espo/Repositories/PhoneNumber.php @@ -258,9 +258,9 @@ class PhoneNumber extends \Espo\Core\ORM\Repositories\RDB if (property_exists($hashPrevious, $key)) { $new = false; - $changed = $hash->{$key}['type'] != $hashPrevious->$key['type']; + $changed = $hash->{$key}['type'] != $hashPrevious->{$key}['type']; if ($hash->{$key}['primary']) { - if ($hash->{$key}['primary'] == $hashPrevious->$key['primary']) { + if ($hash->{$key}['primary'] == $hashPrevious->{$key}['primary']) { $primary = false; } }