]> git.nbdom.net Git - nb.git/commitdiff
limit only for rows
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 29 Dec 2016 23:38:29 +0000 (23:38 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 29 Dec 2016 23:38:29 +0000 (23:38 +0000)
www/dbq/dbq.php

index 3ecdaf7648436c9f97b3a5aac0fba2dd5196d2c2..5ac0e19d4b70ef47de0965d3072d885d7af122b4 100644 (file)
@@ -110,7 +110,6 @@ class DbQ extends nb {
     // Write output
 
     if (empty($this->default_limit)) $this->default_limit = $this->db->limits[0];
-    $this->db->limit = $this->limit();
 
     if (empty($this->_nopage)) {
 
@@ -232,6 +231,7 @@ class DbQ extends nb {
   }
 
   public function table_rows($fct=null) {
+    $this->db->limit = $this->limit();
 
     $opt = ($this->page->is('html')
       and ($this->perm >= self::VIEW)