Skip to content

Commit

Permalink
Change formatting a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
sanduhrs committed Aug 4, 2020
1 parent 3e48226 commit e6d72b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/BigBlueButton/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,17 @@ private function xml2object($raw_response)
// Fix data model.
if (isset($array->attendees)) {
$array->attendees = (array) $array->attendees;
if (!isset($array->attendees[0]) or $array->attendees[0] === "\n") {
if (!isset($array->attendees[0])
|| $array->attendees[0] === "\n") {
$array->attendees = [];
}
}

// Fix data model.
if (isset($array->metadata)) {
$array->metadata = (array) $array->metadata;
if (!isset($array->metadata[0]) or $array->metadata[0] === "\n") {
if (!isset($array->metadata[0])
|| $array->metadata[0] === "\n") {
$array->metadata = [];
}
}
Expand Down

0 comments on commit e6d72b2

Please sign in to comment.