diff options
author | Chris Cornutt <chris.cornutt@hp.com> | 2014-12-15 15:55:30 -0600 |
---|---|---|
committer | Chris Cornutt <chris.cornutt@hp.com> | 2014-12-15 15:55:30 -0600 |
commit | ebfa2b490a43d73645c9f90b3c09570cc5bb05ef (patch) | |
tree | b9aaa6b9fac6a65af8780eca7dd6534827f0a641 /src | |
parent | dff9714efd17fa829f2dc7e671a365e4590d94c5 (diff) | |
download | gatekeeper-ebfa2b490a43d73645c9f90b3c09570cc5bb05ef.zip gatekeeper-ebfa2b490a43d73645c9f90b3c09570cc5bb05ef.tar.gz gatekeeper-ebfa2b490a43d73645c9f90b3c09570cc5bb05ef.tar.bz2 |
adding in missing "host" value for PDO instance creation
Diffstat (limited to 'src')
-rw-r--r-- | src/Psecio/Gatekeeper/Gatekeeper.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Psecio/Gatekeeper/Gatekeeper.php b/src/Psecio/Gatekeeper/Gatekeeper.php index 67aa00e..94bce3e 100644 --- a/src/Psecio/Gatekeeper/Gatekeeper.php +++ b/src/Psecio/Gatekeeper/Gatekeeper.php @@ -49,7 +49,8 @@ class Gatekeeper 'username' => $_SERVER['DB_USER'], 'password' => $_SERVER['DB_PASS'], 'name' => $_SERVER['DB_NAME'], - 'type' => (isset($_SERVER['DB_TYPE'])) ? $_SERVER['DB_TYPE'] : 'mysql' + 'type' => (isset($_SERVER['DB_TYPE'])) ? $_SERVER['DB_TYPE'] : 'mysql', + 'host' => $_SERVER['DB_HOST'] ); } catch (\Exception $e) { return false; |