mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-23 17:42:15 -05:00
bug fix #219: when archive last poched links from a page, redirect to an other page
This commit is contained in:
parent
7f17a38d35
commit
34d67c835e
@ -407,6 +407,12 @@ class Poche
|
||||
'page_links' => '',
|
||||
'nb_results' => '',
|
||||
);
|
||||
|
||||
# want to display a page too far?
|
||||
if ((count($entries) % PAGINATION) + 1 < $_GET['p']) {
|
||||
Tools::redirect('');
|
||||
}
|
||||
|
||||
if (count($entries) > 0) {
|
||||
$this->pagination->set_total(count($entries));
|
||||
$page_links = $this->pagination->page_links('?view=' . $view . '&sort=' . $_SESSION['sort'] . '&');
|
||||
|
Loading…
Reference in New Issue
Block a user