We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3256e88 + f3cc3d6 commit bd615a5Copy full SHA for bd615a5
src/Core/Attendee.php
@@ -58,7 +58,7 @@ class Attendee
58
/**
59
* @var array
60
*/
61
- private $customData;
+ private $customData = [];
62
63
64
* @var string
@@ -80,8 +80,10 @@ public function __construct($xml)
80
$this->hasVideo = $xml->hasVideo->__toString() === 'true';
81
$this->clientType = $xml->clientType->__toString();
82
83
- foreach ($xml->customdata->children() as $data) {
84
- $this->customData[$data->getName()] = $data->__toString();
+ if ($xml->customData) {
+ foreach ($xml->customdata->children() as $data) {
85
+ $this->customData[$data->getName()] = $data->__toString();
86
+ }
87
}
88
89
0 commit comments