Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

A fix for #325: A bug in ReverseManager.php:204: $dsn is undefined #326

Merged
merged 1 commit into from Dec 3, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split
@@ -199,9 +199,9 @@ protected function getConnection()
// Set user + password to null if they are empty strings or missing
$username = isset($buildConnection['user']) && $buildConnection['user'] ? $buildConnection['user'] : null;
- $password = isset($buildConnection['password']) && $buildConnection['password'] ? $buildConnection['password'] : null;
+ $password = isset($buildConnection['password']) ? $buildConnection['password'] : null;
- $con = ConnectionFactory::create(array('dsn' => $dsn, 'user' => $username, 'password' => $password), AdapterFactory::create($buildConnection['adapter']));
+ $con = ConnectionFactory::create(array('dsn' => $buildConnection['dsn'], 'user' => $username, 'password' => $password), AdapterFactory::create($buildConnection['adapter']));
return $con;
}