diff --git a/bridges/CpasbienBridge.php b/bridges/CpasbienBridge.php index 6c3b785..4772e59 100644 --- a/bridges/CpasbienBridge.php +++ b/bridges/CpasbienBridge.php @@ -47,7 +47,10 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{ $item['content'] = $textefiche->text(); } else { - $item['content'] = $htmlepisode->find('#textefiche', 0)->find('p',0)->text(); + $p=$htmlepisode->find('#textefiche',0)->find('p'); + if(!empty($p)){ + $item['content'] = $htmlepisode->find('#textefiche', 0)->find('p',0)->text(); + } } $item['id'] = $episode->find('a', 0)->getAttribute('href');