mirror of
https://github.com/linuxserver/Heimdall-Apps.git
synced 2026-02-20 04:16:08 +08:00
Fixing small bug when everything is read
This commit is contained in:
parent
f9460ff11a
commit
933d8fc631
@ -47,8 +47,11 @@ class FreshRSS extends \App\SupportedApps implements \App\EnhancedApps {
|
||||
if($res->getStatusCode() == 200) {
|
||||
$body = json_decode($res->getBody());
|
||||
if($body->auth === 1){
|
||||
$unread = count(explode(",", $body->unread_item_ids));
|
||||
$data['unread'] = $unread ?? 0;
|
||||
if($body->unread_item_ids != ""){
|
||||
$data['unread'] = count(explode(",", $body->unread_item_ids));
|
||||
} else{
|
||||
$data['unread'] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user