diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-10-03 15:43:24 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-10-03 15:43:24 +0200 |
commit | 47baa1077e2923b8a87e458a6e826c2823ed3614 (patch) | |
tree | 71cfa1d50b458815f72eed52d79fb32242bf3007 /inc | |
parent | f0f7b943622a18ac7c883b077e59d1d84ef90327 (diff) | |
download | wallabag-47baa1077e2923b8a87e458a6e826c2823ed3614.tar.gz wallabag-47baa1077e2923b8a87e458a6e826c2823ed3614.tar.zst wallabag-47baa1077e2923b8a87e458a6e826c2823ed3614.zip |
reopen #219 when archive last poched links from a page, redirect to an other page
Diffstat (limited to 'inc')
-rw-r--r-- | inc/poche/Poche.class.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 8f54267d..8fe7a4f5 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -407,11 +407,6 @@ class Poche | |||
407 | 'page_links' => '', | 407 | 'page_links' => '', |
408 | 'nb_results' => '', | 408 | 'nb_results' => '', |
409 | ); | 409 | ); |
410 | |||
411 | # want to display a page too far? | ||
412 | if ((count($entries) % PAGINATION) + 1 < $_GET['p']) { | ||
413 | Tools::redirect(''); | ||
414 | } | ||
415 | 410 | ||
416 | if (count($entries) > 0) { | 411 | if (count($entries) > 0) { |
417 | $this->pagination->set_total(count($entries)); | 412 | $this->pagination->set_total(count($entries)); |