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();