From: Nicolas Boisselier Date: Mon, 12 Dec 2022 23:01:03 +0000 (+0100) Subject: Cleanup X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=bf87dc9063e3d16b9a139db7774d39834ba6d58b;p=nb.git Cleanup --- diff --git a/lib/php/db.php b/lib/php/db.php index 4067bf92..b44cfe29 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -645,7 +645,7 @@ class Db extends nb { public function action($action,$table=null) { #debug(($this->tables)); - # NB 09.12.22: Test is action is defined (eg: from lib/php/db/dbq/php) + # NB 09.12.22: Test is action is defined (eg: from lib/php/db/dbq.php) $actions = $action ? explode(',',$action) : []; # NB 02.12.16 $this->pdef('format',($this->php_cli() ? 'csv' : '')); $rows = []; @@ -1053,7 +1053,7 @@ class Db extends nb { } public function sql($insert=null,$db_type='') { - if ($insert === null) $insert = self::p('insert'); + if ($insert === null) $insert = self::p('db-insert'); if (empty($db_type)) $db_type = self::p('db-type'); # Filters diff --git a/www/dbq/html/index.php b/www/dbq/html/index.php index bfd9aa01..9e2632d8 100644 --- a/www/dbq/html/index.php +++ b/www/dbq/html/index.php @@ -1,6 +1,4 @@