diff --git a/bridges/ScmbBridge.php b/bridges/ScmbBridge.php index e8d7f51c..0ed774c8 100644 --- a/bridges/ScmbBridge.php +++ b/bridges/ScmbBridge.php @@ -18,7 +18,10 @@ class ScmbBridge extends BridgeAbstract { $item['title'] = $article->find('header h1 a', 0)->innertext; // remove text "En savoir plus" from anecdote content - $article->find('span.read-more', 0)->outertext = ''; + $readMoreButton = $article->find('span.read-more', 0); + if ($readMoreButton) { + $readMoreButton->outertext = ''; + } $content = $article->find('p.summary a', 0)->innertext; // remove superfluous spaces at the end