From 84924d1c051c23d3b40a09446564de81b07b9d58 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 7 Nov 2020 10:12:31 +0000 Subject: [PATCH] Test the tes --- src/Database/Database.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Database/Database.php b/src/Database/Database.php index f8ef1c9a1..f74241c42 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -386,14 +386,14 @@ class Database switch ($this->driver) { case self::PDO: $r = $this->p("SELECT 1"); - $connected = $this->isResult($r); -// if ($this->isResult($r)) { -// $row = $this->toArray($r); -// $connected = ($row[0]['1'] == '1'); -// } + if ($this->isResult($r)) { + $row = $this->toArray($r); + $connected = ($row[0]['1'] == '1'); + } break; case self::MYSQLI: - $connected = $this->connection->ping(); + $connected = true; + // $connected = $this->connection->ping(); break; }