Explorar el Código

Should really use a persistant DB connection

simond hace 23 años
padre
commit
2eab6ef55a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);