From 03d26d91679a34b738747ba97599f629949d18a9 Mon Sep 17 00:00:00 2001 From: Gregory Letellier Date: Tue, 14 Nov 2023 15:33:19 +0100 Subject: [PATCH] fix bug in array host reading --- src/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connection.php b/src/Connection.php index cb5e25f..231428d 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -40,7 +40,7 @@ class Connection $key = (strtolower(trim($this->name))); $this->type = isset($config[$key]["TYPE"]) ? $config[$key]["TYPE"] : null; $this->user = isset($config[$key]["USER"]) ? $config[$key]["USER"] : null; - $this->host = isset($config[$key]["HOST"]) ? $config[$config[$key]["HOST"]] : null; + $this->host = isset($config[$key]["HOST"]) ? $config[$key]["HOST"] : null; $this->password = isset($config[$key]["PASSWORD"]) ? $config[$key]["PASSWORD"] : null; $this->database = isset($config[$key]["DATABASE"]) ? $config[$key]["DATABASE"] : null; $this->port = isset($config[$key]["PORT"]) ? $config[$key]["PORT"] : null;