summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorHalmai, Csongor <csongor@halmai.hu>2015-12-07 03:20:39 +0100
committerHalmai, Csongor <csongor@halmai.hu>2015-12-07 03:20:39 +0100
commit5ced82ab986f6a53ca95f5498a63ac503ea8f580 (patch)
treed3bcf4ed3e37c9205c7515f4c95f9081f6d0ea7a /system
parent115c99e877fee718d91910dd443b3403fc913a96 (diff)
Detecting if database connection was not successful
Diffstat (limited to 'system')
-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;
}