Skip to content

Commit

Permalink
Google Reader API: work-around for News+ bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed May 21, 2015
1 parent 9b69ec4 commit 10d98e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions p/api/greader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 10d98e0

Please sign in to comment.