mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-31 13:55:07 +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
|
// Comment
|
||||||
|
|
||||||
$item['content'] = htmlspecialchars_decode($data->body_html);
|
$item['content'] = htmlspecialchars_decode($data->body_html);
|
||||||
} elseif ($data->is_self) {
|
} elseif ($data->is_self && isset($data->selftext_html)) {
|
||||||
// Text post
|
// Text post
|
||||||
|
|
||||||
$item['content'] = htmlspecialchars_decode($data->selftext_html);
|
$item['content'] = htmlspecialchars_decode($data->selftext_html);
|
||||||
|
|
Loading…
Add table
Reference in a new issue