diff options
| author | 2015-05-23 18:37:50 +0200 | |
|---|---|---|
| committer | 2015-05-23 18:37:50 +0200 | |
| commit | 76ac307b6a4ba5c16f45302c402de9b4b2374427 (patch) | |
| tree | 9d3909128d4349c02cd06cdd76f9685d190a98f4 /p/api/greader.php | |
| parent | 694dfa1f8b90d8f693ef39c7099c0e8f23c5c777 (diff) | |
| parent | 70384b3c996ca58b78a989fa31ff921753d3b3db (diff) | |
Merge branch 'FreshRSS/dev' into PubSubHubbub
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( |
