From bf87dc9063e3d16b9a139db7774d39834ba6d58b Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 13 Dec 2022 00:01:03 +0100 Subject: [PATCH] Cleanup --- lib/php/db.php | 4 ++-- www/dbq/html/index.php | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) 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 @@ -- 2.47.3