diff options
| author | 2015-05-23 16:32:33 +0200 | |
|---|---|---|
| committer | 2015-05-23 16:32:33 +0200 | |
| commit | af388569c2dcf65c87f1f283d0fdb82eb59ab3c7 (patch) | |
| tree | ab516b94c73cc8fc58f1c8d566cc82a5165a807b /p/api | |
| parent | 9b69ec4b3194a82f9c3b0d5ee513a2acdcea74eb (diff) | |
| parent | 10d98e0ce97d15882a06865b894136d3c0444d79 (diff) | |
Merge pull request #847 from Alkarex/NewsPlus
Google Reader API: work-around for News+ bug
Diffstat (limited to 'p/api')
| -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( |
