Ticket #564 (closed Bug: fixed)
Fix Session connect to DB
| Reported by: | Igor | Owned by: | - No owner - |
|---|---|---|---|
| Priority: | major | Milestone: | 2.2 |
| Component: | Libraries:Session | Version: | SVN HEAD |
| Keywords: | Cc: |
Description
In this situation create new connect to DB. Don't use exists of default group.
Code:
public function open($path, $name)
{
if (Config::item('database.'.$this->db_group) === NULL)
{
// There's no defined group, use the default database
$this->db = new Database;
}
....
Need change to:
// There's no defined group, use the default database
$this->db = Database::instance();
Change History
Note: See
TracTickets for help on using
tickets.
