Unset options that Horde_Db doesn't know here.
authorJan Schneider <jan@horde.org>
Tue, 21 Sep 2010 14:05:26 +0000 (16:05 +0200)
committerJan Schneider <jan@horde.org>
Tue, 21 Sep 2010 14:05:26 +0000 (16:05 +0200)
framework/Core/lib/Horde/Core/Factory/Db.php

index dc00a6f..8749ca7 100644 (file)
@@ -145,6 +145,10 @@ class Horde_Core_Factory_Db
         $class = 'Horde_Db_Adapter_' . $adapter;
 
         if (class_exists($class)) {
+            unset($config['read'],
+                  $config['write_db'],
+                  $config['hostspec'],
+                  $config['splitread']);
             $ob = new $class($config);
 
             if (!isset($config['cache'])) {