1
0
Fork 0
forked from blallo/rss-bridge

[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,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');