Skip to content

Commit

Permalink
III-2767 Make PHP 7.2 compliant and check first if performers is not …
Browse files Browse the repository at this point in the history
…'null'.
  • Loading branch information
Luc Wollants committed Oct 17, 2018
1 parent e6305e7 commit b81eb17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CultureFeed/Cdb/Data/EventDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function appendToDOM(DOMElement $element)
$detailElement->appendChild($summaryElement);
}

if (count($this->performers) > 0) {
if ($this->performers && count($this->performers) > 0) {
$this->performers->appendToDOM($detailElement);
}

Expand Down

0 comments on commit b81eb17

Please sign in to comment.