From bdc901562272d5750f972a06a947976065d503ab Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 30 Aug 2016 14:24:14 +0100 Subject: [PATCH] reset type on __construct --- etc/dbs/ui.php | 1 + lib/php/db.php | 1 + 2 files changed, 2 insertions(+) diff --git a/etc/dbs/ui.php b/etc/dbs/ui.php index a148bbfc..af308515 100644 --- a/etc/dbs/ui.php +++ b/etc/dbs/ui.php @@ -2,6 +2,7 @@ $CONF['_ui'] = array( 'title' => 'Semantico UI', 'pdo' => 'sqlite:/opt/www/sem_ui/var/db/semantico.db', + #'type' => 'sqlite', 'default_table' => 'node', 'sql_replace' => function($sql) { diff --git a/lib/php/db.php b/lib/php/db.php index 2a72fe18..a26bf015 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -45,6 +45,7 @@ class Db extends nb { function __construct($opt = '') { # Args + self::$type = null; if ($opt==='') $opt = array(); $opt = is_scalar($opt) ? array('pdo' => $opt) : $opt; -- 2.47.3