]> git.nbdom.net Git - nb.git/commitdiff
reset type on __construct
authorNicolas Boisselier <nicolas.boisselier@semantico.com>
Tue, 30 Aug 2016 13:24:14 +0000 (14:24 +0100)
committerNicolas Boisselier <nicolas.boisselier@semantico.com>
Tue, 30 Aug 2016 13:24:14 +0000 (14:24 +0100)
etc/dbs/ui.php
lib/php/db.php

index a148bbfc1ba8bbb02f2813e7c4de5870c089de5d..af308515620b2fa82f108b3dd103d4a4ae1d7fe3 100644 (file)
@@ -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) {
index 2a72fe18312f8c94b19169e5c39030c6ab928d9d..a26bf015db2f55e01a7b45d20845467c9b8907ec 100644 (file)
@@ -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;