Should really use a persistant DB connection
[squirrelmail.git] / functions / db_prefs.php
index 3d42fe169031472ebcb8ce1f4f572227c1b735f5..1aab90ba556227a008c7fc4ca054fbc2a8f889b9 100644 (file)
@@ -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);