Commit 2858a2e5 authored by Steven Jones's avatar Steven Jones

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

parent d6c8b837
......@@ -299,8 +299,10 @@ class provisionService_db_pdo extends provisionService_db {
}
function connect() {
$user = isset($this->creds['user']) ? $this->creds['user'] : '';
$pass = isset($this->creds['pass']) ? $this->creds['pass'] : '';
try {
$this->conn = new PDO($this->dsn, $this->creds['user'], $this->creds['pass']);
$this->conn = new PDO($this->dsn, $user, $pass);
return $this->conn;
}
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