Ticket #565 (closed Bug: fixed)
Fix Model connect to DB
| Reported by: | Igor | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | major | Milestone: | 2.2 |
| Component: | Libraries:Database | Version: | SVN HEAD |
| Keywords: | Cc: |
Description
In this situation create new connect to DB. Don't use exists of default group.
// Load the default database if necessary
($db === NULL) and $db = new Database('default');
Need change to:
// Load the default database if necessary
($db === NULL) and $db = Database::instance('default');
Change History
Note: See
TracTickets for help on using
tickets.
