diff options
author | Halmai, Csongor <csongor@halmai.hu> | 2015-12-07 03:20:39 +0100 |
---|---|---|
committer | Halmai, Csongor <csongor@halmai.hu> | 2015-12-07 03:20:39 +0100 |
commit | 5ced82ab986f6a53ca95f5498a63ac503ea8f580 (patch) | |
tree | d3bcf4ed3e37c9205c7515f4c95f9081f6d0ea7a /system/core/Loader.php | |
parent | 115c99e877fee718d91910dd443b3403fc913a96 (diff) |
Detecting if database connection was not successful
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r-- | system/core/Loader.php | 4 |
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; } |