Fix sequence name.
authorJan Schneider <jan@horde.org>
Tue, 15 Sep 2009 14:27:49 +0000 (16:27 +0200)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 29 Sep 2009 20:53:55 +0000 (16:53 -0400)
kronolith/lib/Driver/Resource.php

index d44542d..174d3ce 100644 (file)
@@ -370,7 +370,7 @@ class Kronolith_Driver_Resource extends Kronolith_Driver_Sql
         } else {
             $query = 'INSERT INTO kronolith_resources (resource_id, resource_name, resource_calendar, resource_category, resource_description, resource_response_type, resource_max_reservations)';
             $cols_values = ' VALUES (?, ?, ?, ?, ?, ?, ?)';
-            $id = $this->_db->nextId('kronolity_resources');
+            $id = $this->_db->nextId('kronolith_resources');
             $values = array($id, $resource->get('name'), $resource->get('calendar'), $resource->get('category'), $resource->get('description'), $resource->get('response_type'), $resource->get('max_reservations'));
             $result = $this->_write_db->query($query . $cols_values, $values);
             if (!($result instanceof PEAR_Error)) {