summaryrefslogtreecommitdiffstats
path: root/system/database/DB.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-02-10 11:37:09 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-02-10 11:37:09 +0100
commit16af6afe991381360439135ddb0735dab1280fed (patch)
treedef14317577f8f1f4eba47f5bb4db2c744c8f330 /system/database/DB.php
parentaca5186f7d0746642d42f1c67a5debb7912effea (diff)
parentfdd6ad088cd5c6f29974f23e1a2747c243ecb278 (diff)
Merge pull request #1022 from toopay/pdo
Fixed PDO issues.
Diffstat (limited to 'system/database/DB.php')
-rwxr-xr-xsystem/database/DB.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/database/DB.php b/system/database/DB.php
index ed6afd7ed..d06ffb40e 100755
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -82,6 +82,7 @@ function &DB($params = '', $active_record_override = NULL)
$params = array(
'dbdriver' => $dns['scheme'],
'hostname' => (isset($dns['host'])) ? rawurldecode($dns['host']) : '',
+ 'port' => (isset($dns['port'])) ? rawurldecode($dns['port']) : '',
'username' => (isset($dns['user'])) ? rawurldecode($dns['user']) : '',
'password' => (isset($dns['pass'])) ? rawurldecode($dns['pass']) : '',
'database' => (isset($dns['path'])) ? rawurldecode(substr($dns['path'], 1)) : ''