From: Nicolas Boisselier Date: Tue, 28 Nov 2017 23:46:09 +0000 (+0000) Subject: lib/php/db/table.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=53ad2666765fa5cfe31e706951b84bba39030327;p=nb.git lib/php/db/table.php --- diff --git a/lib/php/db/table.php b/lib/php/db/table.php index a87ddc66..e8592e33 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -1041,16 +1041,12 @@ Class Table extends nb { if ($opt_by_val !== null) $opt = $opt_by_val; - #if (isset($opt['format']) and empty($opt['format'])) { if (isset($opt['format']) and $opt['format']==='') { $format = ''; } else { $format = empty($opt['format']) ? $this->p('format') : $opt['format']; - if (!$format and $this->db()->format) { - $format = $this->db()->format; - #$this->pset('format',$format); - } + if (!$format and $this->db()->format) $format = $this->db()->format; if (!$format) $this->bye("Parameter `format` missing!"); }