]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/table.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 7 Feb 2018 20:36:35 +0000 (20:36 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 7 Feb 2018 20:36:35 +0000 (20:36 +0000)
lib/php/db/table.php
www/dbq/dbq.php

index 1ae96a42ba363a558791c33ba24ba559573b6870..8bc0abf98f14d97e42923bc65900216ab3f4e84a 100644 (file)
@@ -1037,7 +1037,7 @@ Class Table extends nb {
                //
                // Fields filter
                //
-               $this->fields_only($row);
+               $this->fields_only($row,array_keys($opt['fields']));
 
                //
                // Format
index 8519e4f01da724ea9fb417ae7237e33bc4bd83a2..2511446d2ed33ac52c456b13aec33edbd718cb60 100644 (file)
@@ -251,6 +251,7 @@ class DbQ extends nb {
                if ($fct === null and $this->is_html) $fct = function(&$r) use ($exp) {
                        static $i; # to detect first header line
                        if ($i) foreach ($r as $k => $v) {
+                       #$finfo = new finfo(FILEINFO_MIME); debug( $finfo->buffer($v) );
                                if ($v and preg_match("/$exp/",$k) and $this->is_base64($v)) {
                                        $r[$k] = '<img src="data:image/jpeg;base64,'.$v.'" />';
                                        #debug($r);