forked from blallo/rss-bridge
[CpasbienBridge] fix unhandled case
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
d530415481
commit
b9207841cc
1 changed files with 4 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue