diff options
| author | 2014-02-21 22:32:29 +0100 | |
|---|---|---|
| committer | 2014-02-21 22:32:29 +0100 | |
| commit | 7313f9f3a306d16fac78ab587e3055482398ceac (patch) | |
| tree | e5585b47cd758328deda4401a98d19afa90ec2ab /app/layout | |
| parent | 7afd9e398a505aebf540ab32c3c6a29bb94a9514 (diff) | |
Bug "mark all as read" when using DESC and pagination and no scroll
https://github.com/marienfressinaud/FreshRSS/issues/431#issuecomment-35774488
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/nav_menu.phtml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index 24c0e38e9..097809e08 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -62,12 +62,11 @@ } } if ($this->order === 'ASC') { - $nb = count($this->entries) - 1; - $p = ($nb >= 0 && isset($this->entries[$nb])) ? $this->entries[$nb] : null; + $idMax = 0; } else { $p = isset($this->entries[0]) ? $this->entries[0] : null; + $idMax = $p === null ? '0' : $p->id(); } - $idMax = $p === null ? '0' : $p->id(); $arUrl = array('c' => 'entry', 'a' => 'read', 'params' => array('get' => $get, 'nextGet' => $nextGet, 'idMax' => $idMax)); $output = Minz_Request::param('output', ''); |
