fix pagination on logger page (admin and customer)

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-03-04 22:14:59 +01:00
parent eae8b8835b
commit ca34f7a78a
3 changed files with 8 additions and 2 deletions

View File

@@ -34,7 +34,8 @@ if ($page == 'log'
SELECT * FROM `' . TABLE_PANEL_LOG . '` WHERE `user` = :loginname ' . $paging->getSqlWhere(true) . ' ' . $paging->getSqlOrderBy() . ' ' . $paging->getSqlLimit()
);
Database::pexecute($result_stmt, array("loginname" => $userinfo['loginname']));
$paging->setEntries(Database::num_rows());
$logs_count = Database::num_rows();
$paging->setEntries($logs_count);
$sortcode = $paging->getHtmlSortCode($lng);
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
$searchcode = $paging->getHtmlSearchCode($lng);
@@ -105,6 +106,7 @@ if ($page == 'log'
$count++;
$_action = $action;
}
$i++;
}
$i++;
}