Fix if no split db has been configured.
authorJan Schneider <jan@horde.org>
Thu, 13 May 2010 21:28:51 +0000 (23:28 +0200)
committerJan Schneider <jan@horde.org>
Thu, 13 May 2010 21:28:51 +0000 (23:28 +0200)
framework/Alarm/lib/Horde/Alarm/Sql.php

index 63c18e9..2a9f503 100644 (file)
@@ -57,6 +57,8 @@ class Horde_Alarm_Sql extends Horde_Alarm
 
         if (isset($params['write_db'])) {
             $this->_write_db = $params['write_db'];
+        } else {
+            $this->_write_db = $this->_db;
         }
 
         unset($params['db'], $params['write_db']);