diff options
Diffstat (limited to 'p/api/greader.php')
| -rw-r--r-- | p/api/greader.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/p/api/greader.php b/p/api/greader.php index f1cb7d615..34b74fd19 100644 --- a/p/api/greader.php +++ b/p/api/greader.php @@ -746,7 +746,7 @@ final class GReaderAPI { $entryDAO = FreshRSS_Factory::createEntryDao(); $ids = $entryDAO->listIdsWhere($type, $id, $state, $order === 'o' ? 'ASC' : 'DESC', $count, $continuation, $searches); - if ($ids === false) { + if ($ids == null) { self::internalServerError(); } @@ -898,13 +898,15 @@ final class GReaderAPI { $categoryDAO = FreshRSS_Factory::createCategoryDao(); $cat = $categoryDAO->searchByName($s); if ($cat != null) { - $categoryDAO->updateCategory($cat->id(), array('name' => $dest)); + $categoryDAO->updateCategory($cat->id(), [ + 'name' => $dest, 'kind' => $cat->kind(), 'attributes' => $cat->attributes() + ]); exit('OK'); } else { $tagDAO = FreshRSS_Factory::createTagDao(); $tag = $tagDAO->searchByName($s); if ($tag != null) { - $tagDAO->updateTag($tag->id(), array('name' => $dest)); + $tagDAO->updateTagName($tag->id(), $dest); exit('OK'); } } |
