diff --git a/bridges/BundesbankBridge.php b/bridges/BundesbankBridge.php index 4335cb69..0c6b943f 100644 --- a/bridges/BundesbankBridge.php +++ b/bridges/BundesbankBridge.php @@ -71,7 +71,9 @@ class BundesbankBridge extends BridgeAbstract $item['content'] .= '' . $study->find('.teasable__subtitle', 0)->plaintext . ''; } - $item['content'] .= '
' . $study->find('.teasable__text', 0)->plaintext . '
'; + $teasable = $study->find('.teasable__text', 0); + $teasableText = $teasable->plaintext ?? ''; + $item['content'] .= '' . $teasableText . '
'; $item['timestamp'] = strtotime($study->find('.teasable__date', 0)->plaintext); diff --git a/bridges/ReutersBridge.php b/bridges/ReutersBridge.php index 2acadfc3..fdf4e2a9 100644 --- a/bridges/ReutersBridge.php +++ b/bridges/ReutersBridge.php @@ -466,6 +466,10 @@ EOD; } $rows = $content['rows']; foreach ($rows as $row) { + if (!is_array($row)) { + // some rows are null + continue; + } $tr = 'Played games: