]> git.nbdom.net Git - nb.git/commitdiff
/opt/nb/www/dbq/etc/nginx.conf
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 13 Jul 2019 03:14:01 +0000 (04:14 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 13 Jul 2019 03:14:01 +0000 (04:14 +0100)
lib/php/db/table.php
www/dbq/etc/nginx.conf

index b3bc44d7ff5db6473e2579cf484ec37318a2430d..94c3dc15e0916de86b16a45dfee87f9def09cc76 100644 (file)
@@ -1385,7 +1385,7 @@ Class Table extends nb {
                        $this->tot = $opt['tot'] = $tot;
 
                } # < is_html
-               if (!isset($opt['tot'])) $opt['tot'] = $opt['count'];
+               if (!isset($opt['tot'])) $this->tot = $opt['tot'] = $opt['count'];
 
                if ($count === 0 and !$format) {
                        echo $this->{"rows_begin_$format"}($fields,$opt);
index 947f19a5b51e401aba0586397bc5bffcf26caf00..3a4b55c5c2ffd238c6fdc3693703d2a9b1cf0afd 100644 (file)
@@ -45,6 +45,7 @@ location ~ /index\.php$ {
        if ($DBQ_CONF_DIR = "") { set $DBQ_CONF_DIR ""; }
        fastcgi_param DBQ_CONF_DIR $DBQ_CONF_DIR;
 
+       if ($DBQ_PERM = "") { set $DBQ_PERM ""; }
        fastcgi_param DBQ_PERM $DBQ_PERM;
 
        if ($DBQ_PROD = "") { set $DBQ_PROD ""; }