[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,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');
|
||||
|
|
Loading…
Reference in a new issue