Changeset 596 for trunk/lib


Ignore:
Timestamp:
Apr 27, 2017 2:54:07 PM (7 years ago)
Author:
anonymous
Message:

Protect against case when app->start is not run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r588 r596  
    538538        $this->running = false;
    539539        $num_queries = 0;
    540         if (true === $this->getParam('enable_db')) {
     540        if (is_a($this->db, 'DB') && true === $this->getParam('enable_db')) {
    541541            $num_queries = $this->db->numQueries();
    542542            $this->db->close();
Note: See TracChangeset for help on using the changeset viewer.