fix: php errors (notices) (#3115)

This commit is contained in:
Dag 2022-10-26 00:47:45 +02:00 committed by GitHub
parent 8795cb252f
commit 52af2ae34c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 33 additions and 20 deletions

View file

@ -40,6 +40,9 @@ class MoebooruBridge extends BridgeAbstract
foreach ($data as $datai) {
$json = json_decode($datai, true);
if ($json === null) {
continue;
}
$item = [];
$item['uri'] = $this->getURI() . '/post/show/' . $json['id'];
$item['postid'] = $json['id'];