summaryrefslogtreecommitdiffstats
path: root/system/codeigniter
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-12 22:42:55 +0200
committeradmin <devnull@localhost>2006-10-12 22:42:55 +0200
commit5a14ea1599841bdaac15b45e3efd4cba01601f49 (patch)
tree38a96160bcc9655c6f2b7c9f27c8943554abf12d /system/codeigniter
parentf6615e650f7f871fbb4a2e0e1a75fd9afa2e3647 (diff)
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();
}