From: Michael Date: Sat, 7 Nov 2020 10:12:31 +0000 (+0000) Subject: Test the tes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=84924d1c051c23d3b40a09446564de81b07b9d58;p=friendica.git Test the tes --- diff --git a/src/Database/Database.php b/src/Database/Database.php index f8ef1c9a1e..f74241c42c 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; }