From: Nicolas Boisselier Date: Wed, 7 Feb 2018 20:36:35 +0000 (+0000) Subject: lib/php/db/table.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=2916763a5a8682dba0a1bef148f4ddde0fb42c9e;p=nb.git lib/php/db/table.php --- diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 1ae96a42..8bc0abf9 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -1037,7 +1037,7 @@ Class Table extends nb { // // Fields filter // - $this->fields_only($row); + $this->fields_only($row,array_keys($opt['fields'])); // // Format diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 8519e4f0..2511446d 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -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] = ''; #debug($r);