diff options
| author | 2015-05-21 19:42:03 +0200 | |
|---|---|---|
| committer | 2015-05-21 19:42:03 +0200 | |
| commit | 65b41af94d904d7d62b242407d68843e3fea802e (patch) | |
| tree | f218d9c98bd23b2aebb55be5e62558076a1031e8 /p/api/greader.php | |
| parent | 67f66358d40e9414f2d3273949c7758201d2f726 (diff) | |
Google Reader API: work-around for News+ bug
https://github.com/noinnion/newsplus/issues/84#issuecomment-57834632
https://github.com/FreshRSS/FreshRSS/issues/443
Diffstat (limited to 'p/api/greader.php')
| -rw-r--r-- | p/api/greader.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/p/api/greader.php b/p/api/greader.php index 4554a3f9c..5a23af006 100644 --- a/p/api/greader.php +++ b/p/api/greader.php @@ -467,6 +467,9 @@ function streamContentsItemsIds($streamId, $start_time, $count, $order, $exclude $entryDAO = FreshRSS_Factory::createEntryDao(); $ids = $entryDAO->listIdsWhere($type, $id, $state, $order === 'o' ? 'ASC' : 'DESC', $count, '', new FreshRSS_Search(''), $start_time); + if (empty($ids)) { //For News+ bug https://github.com/noinnion/newsplus/issues/84#issuecomment-57834632 + $ids[] = 0; + } $itemRefs = array(); foreach ($ids as $id) { $itemRefs[] = array( |
