commit | ac718628e8b486f8016ac775829a32cfbc9fa3da | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Wed Jun 22 13:01:51 2016 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Wed Jun 22 13:01:51 2016 +0300 |
tree | 4f3438f9a3b51ca49f0726572fee7e5cd8e7dbb0 | |
parent | f7b028bf6db9c298db99cf800777ad3691b206b5 [diff] [blame] |
Fix #4674
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php index c6f84e0..c27607e 100644 --- a/system/database/drivers/pdo/pdo_driver.php +++ b/system/database/drivers/pdo/pdo_driver.php
@@ -126,7 +126,10 @@ */ public function db_connect($persistent = FALSE) { - $this->options[PDO::ATTR_PERSISTENT] = $persistent; + if ($persistent === TRUE) + { + $this->options[PDO::ATTR_PERSISTENT] = TRUE; + } try {