From dec15fb5440b874a20b40350d98bafb0bb64af57 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 5 Apr 2018 03:34:44 +0100 Subject: [PATCH] /opt/nb/lib/php/db.php --- lib/php/db.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/php/db.php b/lib/php/db.php index 45a45552..fcd911ad 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -817,7 +817,7 @@ class Db extends nb { * @copyright NB 19.11.16 * Return a db hash to create a new instance from $conf */ - public static function conf_param_db($id) { + private static function conf_param_db($id) { if (!isset($id)) $id = self::p('db'); if (!$id or !preg_match('/^(\w+):(.*)/',$id,$m)) return []; @@ -891,8 +891,8 @@ class Db extends nb { if (isset($Table)) self::bye("Table.init(): GLOBALS['Table'] already exists !"); if (isset($Db)) self::bye("Db.init(): GLOBALS['Db'] already exists !"); $Db = new self(); - # - # Connection + + # Db Connection $Db->__construct($db); $Db->connect(); -- 2.47.3