]> git.datanom.net - qtadmin.git/blobdiff - lib/db_factory.php
New menu
[qtadmin.git] / lib / db_factory.php
index 68b1ee5087ec11b14412abea7da7bf0b4771aeb2..f40e327aa0d775a9bb2fa6c99aebfff56c45efa3 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 /* vim: set ts=4 tw=0 sw=4 noet: */
 if (isset($CFG->db_driver)) {
-       switch ($CFG->db_driver) {
-               case 'mysqli':
-                       require_once $CFG->root . 'lib/db_mysqli.inc.php';
-                       $DB = DBMysqli::getInstance();
-                       break;
-               default:
-                       die ('Unknow database driver: ' . $CFG->db_driver);
-       }
+    switch ($CFG->db_driver) {
+        case 'mysqli':
+            require_once $CFG->root . 'lib/db_mysqli.inc.php';
+            $DB = DBMysqli::getInstance();
+            break;
+        default:
+            die ('Unknow database driver: ' . $CFG->db_driver);
+    }
 } else {
-       die ('Missing config file');
+    die ('Missing config file');
 }
 ?>
This page took 0.059199 seconds and 5 git commands to generate.