Ticket #430 (closed defect: fixed)
QInstalationValidator small fix - skipping non-existing database connections
| Reported by: | dmarkic | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.1.2 |
| Component: | Framework | Version: | 1.1 Development |
| Keywords: | QInstalationValidator | Cc: |
Description
On line 142 of QInstalationValidtor you do: $db = QApplication::$Database[$i];
Without checking if this connection is defined or not. I suggest you add a line before that:
if (!isset(QApplication::$Database[$i]))
continue;
I have some databases defined, but not in correct order, (eg, 2 and 6), so this fails with fatal error on line 148 with $db->Connect as $db is not an object.
I've attached the patch.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

