summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index 3f5136c..df55b05 100644
--- a/index.php
+++ b/index.php
@@ -34,6 +34,7 @@ isset($_GET['sort']) ? define('GET_SORT', $_GET['sort']): define('GET_SORT', '')
// Logout action
if (GET_ACTION == "logout") {
$userservice->logout();
+ $tplVars['currentUser'] = null;
$tplvars['msg'] = T_('You have now logged out');
}
@@ -57,7 +58,7 @@ if ($usecache) {
}
// Pagination
-$perpage = getPerPageCount();
+$perpage = getPerPageCount($currentUser);
if (intval(GET_PAGE) > 1) {
$page = GET_PAGE;
$start = ($page - 1) * $perpage;