[CpasbienBridge] fix unhandled case

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-25 00:12:33 +02:00
parent d530415481
commit b9207841cc

View file

@ -47,8 +47,11 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{
$item['content'] = $textefiche->text();
}
else {
$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');
$item['uri'] = $this->uri . $htmlepisode->find('#telecharger',0)->getAttribute('href');