1
0
Fork 0
forked from blallo/rss-bridge

Merge pull request #53 from aledeg/wordpress

[WordpressBridge] Fix posts discovery for PHP 5.5-
This commit is contained in:
mitsukarenai 2014-05-28 09:47:30 +02:00
commit 3c363da883

View file

@ -25,7 +25,8 @@ class WordpressBridge extends BridgeAbstract {
$html = file_get_html($this->url) or $this->returnError("Could not request {$this->url}.", 404);
if(!empty($html->find('.post')) ) {
$posts = $html->find('.post');
if(!empty($posts) ) {
$i=0;
foreach ($html->find('.post') as $article) {
if($i < 3) {