aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/poche/Poche.class.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 57e8b7b3..a8f64151 100644
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -259,13 +259,17 @@ class Poche
259 break; 259 break;
260 default: # home, favorites and archive views 260 default: # home, favorites and archive views
261 $entries = $this->store->getEntriesByView($view, $this->user->getId()); 261 $entries = $this->store->getEntriesByView($view, $this->user->getId());
262 $this->pagination->set_total(count($entries));
263 $page_links = $this->pagination->page_links('?view=' . $view . '&sort=' . $_SESSION['sort'] . '&');
264 $datas = $this->store->getEntriesByView($view, $this->user->getId(), $this->pagination->get_limit());
265 $tpl_vars = array( 262 $tpl_vars = array(
266 'entries' => $datas, 263 'entries' => '',
267 'page_links' => $page_links, 264 'page_links' => '',
268 ); 265 );
266 if (count($entries) > 0) {
267 $this->pagination->set_total(count($entries));
268 $page_links = $this->pagination->page_links('?view=' . $view . '&sort=' . $_SESSION['sort'] . '&');
269 $datas = $this->store->getEntriesByView($view, $this->user->getId(), $this->pagination->get_limit());
270 $tpl_vars['entries'] = $datas;
271 $tpl_vars['page_links'] = $page_links;
272 }
269 Tools::logm('display ' . $view . ' view'); 273 Tools::logm('display ' . $view . ' view');
270 break; 274 break;
271 } 275 }