The PDO driver is called oci, not oci8 *sigh*.
authorJan Schneider <jan@horde.org>
Wed, 20 Jan 2010 14:51:39 +0000 (15:51 +0100)
committerJan Schneider <jan@horde.org>
Wed, 20 Jan 2010 22:32:07 +0000 (23:32 +0100)
framework/Core/lib/Horde/Core/Binder/Db.php

index 30b997a..fb30bd4 100644 (file)
@@ -23,6 +23,9 @@ class Horde_Core_Binder_Db implements Horde_Injector_Binder
     {
         $config = $GLOBALS['conf']['sql'];
         if (!isset($config['adapter'])) {
+            if ($config['phptype'] == 'oci8') {
+                $config['phptype'] = 'oci';
+            }
             $config['adapter'] = $config['phptype'] == 'mysqli' ? 'mysqli' : 'pdo_' . $config['phptype'];
         }
         if (!empty($config['hostspec'])) {