summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorSteffen Stollfuß <j0inty@users.noreply.github.com>2015-11-08 20:52:25 +0100
committerSteffen Stollfuß <j0inty@users.noreply.github.com>2015-11-08 20:52:25 +0100
commitdd11297837f50ea2fd37f891cb8b4408f84f53e0 (patch)
tree2cfce754c4de1439b84040f7f94a08add81a2560 /system
parent49c78f694eded442d95a25feb5bbc69e6bffb205 (diff)
CI_DB_driver->simple_query() discard return of CI_DB_driver->initialize() when db_debug = FALSE
#4223
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_driver.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 0ea679432..6797df0f8 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -774,7 +774,10 @@ abstract class CI_DB_driver {
{
if ( ! $this->conn_id)
{
- $this->initialize();
+ if( !$this->initialize() )
+ {
+ return FALSE;
+ }
}
return $this->_execute($sql);