mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 10:34:55 +02:00
various fixes (#3190)
* fix: Call to a member function parent() on null * fix: notice fixes Trying to get property plaintext of non-object at bridges/WikiLeaksBridge.php line 96 * fix: CommonDreamsBridge
This commit is contained in:
parent
a13c4624fb
commit
936ae8cca3
3 changed files with 76 additions and 65 deletions
|
@ -93,8 +93,10 @@ class WikiLeaksBridge extends BridgeAbstract
|
|||
$item['title'] = $article->find('h3', 0)->plaintext;
|
||||
$item['uri'] = static::URI . $article->find('h3 a', 0)->href;
|
||||
$item['content'] = $article->find('div.introduction', 0)->plaintext;
|
||||
$item['timestamp'] = strtotime($article->find('div.timestamp', 0)->plaintext);
|
||||
|
||||
$timestamp = $article->find('div.timestamp', 0);
|
||||
if ($timestamp) {
|
||||
$item['timestamp'] = strtotime($timestamp->plaintext);
|
||||
}
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue