mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-24 09:11:31 -04:00
Merge pull request #847 from Alkarex/NewsPlus
Google Reader API: work-around for News+ bug
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user