Sfoglia il codice sorgente

Should really use a persistant DB connection

simond 23 anni fa
parent
commit
2eab6ef55a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      functions/db_prefs.php

+ 1 - 1
functions/db_prefs.php

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