summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão <joao@jdlferreira.com>2015-01-14 10:10:41 +0100
committerJoão <joao@jdlferreira.com>2015-01-14 10:10:41 +0100
commitbe676859e18bc1b29c28705bc6902f69aa72c236 (patch)
tree15b6c96ae358f1f7750b79fd854c431fbf07b9f7
parent38666660a0d3b9a91cffb27c0fb519340e76ba5d (diff)
var_export in DB.php outputting string
When a DSN string is supplied and it contains parameters such as "db_debug=TRUE", var_export will currently output the parsable string representation of the variable. By setting the second parameter to TRUE, the output is killed.
-rw-r--r--system/database/DB.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB.php b/system/database/DB.php
index fc9f4d0dc..a33627191 100644
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -130,7 +130,7 @@ function &DB($params = '', $query_builder_override = NULL)
{
if (is_string($val) && in_array(strtoupper($val), array('TRUE', 'FALSE', 'NULL')))
{
- $val = var_export($val);
+ $val = var_export($val, TRUE);
}
$params[$key] = $val;