File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/Bitrix24/Contacts/Formatters Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
# loyalty-php-sdk
2
+ ## 0.1.3 (6.08.2019)
3
+ * fix contact formatter error
4
+
2
5
## 0.1.2 (5.08.2019)
3
6
* add transport ` Bitrix24\Contacts\Transport\Admin `
4
7
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public static function toArray(Contacts\DTO\Contact $contact): array
32
32
$ contact ->getMobilePhone ()->getCountryCode (),
33
33
$ contact ->getMobilePhone ()->getNationalNumber ()
34
34
),
35
- 'email ' => ( string )$ contact ->getEmail (),
35
+ 'email ' => $ contact -> getEmail () !== null ? ( string )$ contact ->getEmail () : null ,
36
36
'address ' => $ contact ->getAddress () !== null ? $ contact ->getAddress ()->toArray () : null ,
37
37
'origin_id ' => $ contact ->getOriginId (),
38
38
'originator_id ' => $ contact ->getOriginatorId (),
You can’t perform that action at this time.
0 commit comments