One more unset write_db.
authorJan Schneider <jan@horde.org>
Fri, 14 May 2010 13:42:13 +0000 (15:42 +0200)
committerJan Schneider <jan@horde.org>
Fri, 14 May 2010 13:42:13 +0000 (15:42 +0200)
framework/Token/lib/Horde/Token/Sql.php

index 5202609..be35bc1 100644 (file)
@@ -64,6 +64,8 @@ class Horde_Token_Sql extends Horde_Token_Driver
 
         if (isset($params['write_db'])) {
             $this->_write_db = $params['write_db'];
+        } else {
+            $this->_write_db = $this->_db;
         }
 
         unset($params['db'], $params['write_db']);