Browse Source

Refactor the database connector.

Taylor Otwell 13 years ago
parent
commit
a1956f016c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      system/db/connector.php

+ 4 - 1
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);