summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/core/Loader.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 18e4c5287..7593ae5d6 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -361,6 +361,10 @@ class CI_Loader {
// Load the DB class
$CI->db =& DB($params, $query_builder);
+ if (!$CI->db->conn_id)
+ {
+ return FALSE;
+ }
return $this;
}