summaryrefslogtreecommitdiffstats
path: root/inc/paginate.inc.php
diff options
context:
space:
mode:
authorUdo Walter2018-01-18 17:54:13 +0100
committerUdo Walter2018-01-18 17:54:13 +0100
commit734c493dc1e416ee188ad121033b7856e8259816 (patch)
tree6b28d6606a9bd960bf5f9d2b44ec60c46a7c4696 /inc/paginate.inc.php
parent[minilinux] implemented permission-system. you can't see the side without any... (diff)
downloadslx-admin-734c493dc1e416ee188ad121033b7856e8259816.tar.gz
slx-admin-734c493dc1e416ee188ad121033b7856e8259816.tar.xz
slx-admin-734c493dc1e416ee188ad121033b7856e8259816.zip
[statistics] added permissions to view client logs;
removed unused query arguments from Paginate::exec (caused an error if query arguments that are actually used in the query are passed to Paginate::exec)
Diffstat (limited to 'inc/paginate.inc.php')
-rw-r--r--inc/paginate.inc.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/inc/paginate.inc.php b/inc/paginate.inc.php
index cdb4adf1..b212e252 100644
--- a/inc/paginate.inc.php
+++ b/inc/paginate.inc.php
@@ -65,8 +65,6 @@ class Paginate
$countQuery = preg_replace('/ORDER\s+BY\s.*?(\sASC|\sDESC|$)/is', '', $this->query);
$countQuery = preg_replace('/SELECT\s.*?\sFROM\s/is', 'SELECT Count(*) AS rowcount FROM ', $countQuery);
$countRes = Database::queryFirst($countQuery, $args);
- $args['limit_start'] = $this->currentPage;
- $args['limit_count'] = $this->perPage;
$query = $this->query . ' LIMIT ' . ($this->currentPage * $this->perPage) . ', ' . $this->perPage;
$retval = Database::simpleQuery($query, $args);
$this->totalRows = (int)$countRes['rowcount'];