From e78a5b0ad37d84778a8f26d04f58558bb713d493 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 10:22:37 -0500 Subject: [PATCH] Refactor the connector class. --- system/db/connector.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/system/db/connector.php b/system/db/connector.php index a068637f..71c952d2 100644 --- a/system/db/connector.php +++ b/system/db/connector.php @@ -79,10 +79,7 @@ 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);