diff options
| author | 2019-01-26 21:17:16 +0100 | |
|---|---|---|
| committer | 2019-01-26 21:17:16 +0100 | |
| commit | 5b40920bb3fd30137adc3b9286dd62f2fb30ec5b (patch) | |
| tree | 5840b608e7434e88b2b48f21bd071dd71db58c2d /app/Controllers/entryController.php | |
| parent | 4872442c62f63ef97a0e12c43b4700b98ebcdc15 (diff) | |
| parent | ef6df8aeca9f7b8dda96ab54fffd05f17b27606b (diff) | |
Merge pull request #2203 from FreshRSS/dev-1.14.0
Dev 1.14.0
Diffstat (limited to 'app/Controllers/entryController.php')
| -rwxr-xr-x | app/Controllers/entryController.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/app/Controllers/entryController.php b/app/Controllers/entryController.php index fc0af0639..9c5ee2616 100755 --- a/app/Controllers/entryController.php +++ b/app/Controllers/entryController.php @@ -97,14 +97,15 @@ class FreshRSS_entry_Controller extends Minz_ActionController { } } } else { - $entryDAO->markRead($id, $is_read); - + $ids = is_array($id) ? $id : array($id); + $entryDAO->markRead($ids, $is_read); $tagDAO = FreshRSS_Factory::createTagDao(); - foreach ($tagDAO->getTagsForEntry($id) as $tag) { - if (!empty($tag['checked'])) { - $this->view->tags[] = $tag['id']; - } + $tagsForEntries = $tagDAO->getTagsForEntries($ids); + $tags = array(); + foreach ($tagsForEntries as $line) { + $tags['t_' . $line['id_tag']][] = $line['id_entry']; } + $this->view->tags = $tags; } if (!$this->ajax) { |
