mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-24 18:36:59 +03:00
Update RedditBridge.php (#4019)
prevent error htmlspecialchars_decode(): Passing null to parameter #1
This commit is contained in:
parent
36147a082d
commit
a61524bf77
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ class RedditBridge extends BridgeAbstract
|
|||
// Comment
|
||||
|
||||
$item['content'] = htmlspecialchars_decode($data->body_html);
|
||||
} elseif ($data->is_self) {
|
||||
} elseif ($data->is_self && isset($data->selftext_html)) {
|
||||
// Text post
|
||||
|
||||
$item['content'] = htmlspecialchars_decode($data->selftext_html);
|
||||
|
|
Loading…
Reference in a new issue