Commit 30142ebe authored by Steven Jones's avatar Steven Jones

Issue #1150274 by Steven Jones: Fixed Undefined index: user db.drush.inc:288.

parent 95845b5f
...@@ -299,8 +299,10 @@ class provisionService_db_pdo extends provisionService_db { ...@@ -299,8 +299,10 @@ class provisionService_db_pdo extends provisionService_db {
} }
function connect() { function connect() {
$user = isset($this->creds['user']) ? $this->creds['user'] : '';
$pass = isset($this->creds['pass']) ? $this->creds['pass'] : '';
try { try {
$this->conn = new PDO($this->dsn, $this->creds['user'], $this->creds['pass']); $this->conn = new PDO($this->dsn, $user, $pass);
return $this->conn; return $this->conn;
} }
catch (PDOException $e) { catch (PDOException $e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment