From d6a1a836f1ce0613b9d17f26a1f0fe778d50aa52 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 7 Nov 2020 09:58:20 +0000 Subject: [PATCH] Simplified connection test --- src/Database/Database.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Database/Database.php b/src/Database/Database.php index 273c2985c..f8ef1c9a1 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -386,10 +386,11 @@ class Database switch ($this->driver) { case self::PDO: $r = $this->p("SELECT 1"); - if ($this->isResult($r)) { - $row = $this->toArray($r); - $connected = ($row[0]['1'] == '1'); - } + $connected = $this->isResult($r); +// if ($this->isResult($r)) { +// $row = $this->toArray($r); +// $connected = ($row[0]['1'] == '1'); +// } break; case self::MYSQLI: $connected = $this->connection->ping();