Przeglądaj źródła

ZF-7827 - Removed 'type' parameter from options array to fix Zend_Db PDO issue

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18076 44c647ce-9c0f-0410-b52a-842ac1e357ba
jplock 16 lat temu
rodzic
commit
1679f54ece
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      library/Zend/Queue/Adapter/Db.php

+ 4 - 1
library/Zend/Queue/Adapter/Db.php

@@ -113,8 +113,11 @@ class Zend_Queue_Adapter_Db extends Zend_Queue_Adapter_AdapterAbstract
             throw new Zend_Queue_Exception("Configuration array must have a key for 'dbname' for the database to use");
         }
 
+        $type = $options['type'];
+        unset($options['type']);
+
         try {
-            $db = Zend_Db::factory($options['type'], $options);
+            $db = Zend_Db::factory($type, $options);
 
             $this->_queueTable = new Zend_Queue_Adapter_Db_Queue(array(
                 'db' => $db,