summaryrefslogtreecommitdiffstats
path: root/system/codeigniter
diff options
context:
space:
mode:
Diffstat (limited to 'system/codeigniter')
-rw-r--r--system/codeigniter/CodeIgniter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index 49347715f..93c1dba5f 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -244,7 +244,7 @@ $EXT->_call_hook('post_system');
* Close the DB connection if one exists
* ------------------------------------------------------
*/
-if (class_exists('CI_DB'))
+if (class_exists('CI_DB') AND isset($CI->db))
{
$CI->db->close();
}