This commit is contained in:
Dag 2023-09-22 20:59:45 +02:00 committed by GitHub
parent 39d6710798
commit a6a1d553d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 4 deletions

View File

@ -71,7 +71,9 @@ class BundesbankBridge extends BridgeAbstract
$item['content'] .= '<strong>' . $study->find('.teasable__subtitle', 0)->plaintext . '</strong>';
}
$item['content'] .= '<p>' . $study->find('.teasable__text', 0)->plaintext . '</p>';
$teasable = $study->find('.teasable__text', 0);
$teasableText = $teasable->plaintext ?? '';
$item['content'] .= '<p>' . $teasableText . '</p>';
$item['timestamp'] = strtotime($study->find('.teasable__date', 0)->plaintext);

View File

@ -466,6 +466,10 @@ EOD;
}
$rows = $content['rows'];
foreach ($rows as $row) {
if (!is_array($row)) {
// some rows are null
continue;
}
$tr = '<tr>';
foreach ($row as $data) {
$tr .= '<td>' . $data . '</td>';

View File

@ -157,9 +157,11 @@ EOD;
// Add played games list to content
$item['content'] .= '<p><b>Played games:</b><ul>';
if (count($video->moments->edges) > 0) {
foreach ($video->moments->edges as $edge) {
$moment = $edge->node;
$momentEdges = $video->moments->edges ?? [];
if (count($momentEdges) > 0) {
foreach ($momentEdges as $momentEdge) {
$moment = $momentEdge->node;
$item['categories'][] = $moment->description;
$item['content'] .= '<li><a href="'