]> git.nbdom.net Git - nb.git/commitdiff
limit only or rows
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 9 Jan 2017 13:53:51 +0000 (13:53 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 9 Jan 2017 13:53:51 +0000 (13:53 +0000)
www/dbq/dbq.php

index bad188c5cb9b29c3725b4c564d52b0bd7dba7f95..ba318e59bef2e05bd8bb3c8ca1b7879f3bcf5d72 100644 (file)
@@ -110,7 +110,6 @@ class DbQ extends nb {
 
     // Defaults
     if (empty($this->default_limit)) $this->default_limit = $this->db->limits[0];
-    $this->db->limit = $this->limit();
 
     // Write output
     if (empty($this->_nopage)) {
@@ -227,6 +226,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)