mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
[GettrBridge] fix: don't use php7.2 feature
The constant "JSON_THROW_ON_ERROR" is not present in PHP version 7.2 or earlier
This commit is contained in:
parent
ec90bd905e
commit
5aa163e7d6
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class GettrBridge extends BridgeAbstract
|
|||
$this->getInput('user'),
|
||||
max($this->getInput('limit'), 20)
|
||||
);
|
||||
$data = json_decode(getContents($api), false, JSON_THROW_ON_ERROR);
|
||||
$data = json_decode(getContents($api), false);
|
||||
|
||||
foreach ($data->result->aux->post as $post) {
|
||||
$this->items[] = [
|
||||
|
|
Loading…
Add table
Reference in a new issue