diff --git a/bridges/NextInpactBridge.php b/bridges/NextInpactBridge.php index c91a4837..c070038a 100644 --- a/bridges/NextInpactBridge.php +++ b/bridges/NextInpactBridge.php @@ -8,7 +8,7 @@ * @homepage http://www.nextinpact.com/ * @description Returns the newest articles. * @maintainer qwertygc -* @update 2015-09-05 +* @update 2015-10-23 */ class NextInpactBridge extends BridgeAbstract { @@ -25,9 +25,9 @@ class NextInpactBridge extends BridgeAbstract { $text = '

'.$html2->find('span.sub_title', 0)->innertext.'

' .'

-

' .'
'.$html2->find('div[itemprop=articleBody]', 0)->innertext.'
'; - $premium_article = $html2->find('h2.title_reserve_article', 0)->innertext; - if (strlen($premium_article) > 0) - $text = $text.'

'.$premium_article.'

'; + $premium_article = $html2->find('h2.title_reserve_article', 0); + if (is_object($premium_article)) + $text = $text.'

'.$premium_article->innertext.'

'; return $text; }