From: Michael Date: Sat, 7 Nov 2020 10:27:22 +0000 (+0000) Subject: Test if PDO doesn't work on the tests X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8906615b2c5716555cfd6e321790b7a26837c240;p=friendica.git Test if PDO doesn't work on the tests --- diff --git a/src/Database/Database.php b/src/Database/Database.php index f74241c42c..4ca454821b 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -385,15 +385,15 @@ 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 = true; +// $r = $this->p("SELECT 1"); +// if ($this->isResult($r)) { +// $row = $this->toArray($r); +// $connected = ($row[0]['1'] == '1'); +// } break; case self::MYSQLI: - $connected = true; - // $connected = $this->connection->ping(); + $connected = $this->connection->ping(); break; }