瀏覽代碼

Should really use a persistant DB connection

simond 23 年之前
父節點
當前提交
2eab6ef55a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/db_prefs.php

+ 1 - 1
functions/db_prefs.php

@@ -86,7 +86,7 @@ class dbPrefs {
         if (!empty($prefs_table)) {
             $this->table = $prefs_table;
         }
-        $dbh = DB::connect($prefs_dsn);
+        $dbh = DB::connect($prefs_dsn, true);
 
         if(DB::isError($dbh) || DB::isWarning($dbh)) {
             $this->error = DB::errorMessage($dbh);