From a1956f016c5e075074d66cdd2c84bac5792c7e36 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 10:51:01 -0500 Subject: [PATCH] Refactor the database connector. --- system/db/connector.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/db/connector.php b/system/db/connector.php index 71c952d2..a068637f 100644 --- a/system/db/connector.php +++ b/system/db/connector.php @@ -79,7 +79,10 @@ class Connector { { $dsn = $config->driver.':host='.$config->host.';dbname='.$config->database; - if (isset($config->port)) $dsn .= ';port='.$config->port; + if (isset($config->port)) + { + $dsn .= ';port='.$config->port; + } $connection = new \PDO($dsn, $config->username, $config->password, $this->options);