Test the tes

This commit is contained in:
Michael 2020-11-07 10:12:31 +00:00
parent d6a1a836f1
commit 84924d1c05

View File

@ -386,14 +386,14 @@ class Database
switch ($this->driver) { switch ($this->driver) {
case self::PDO: case self::PDO:
$r = $this->p("SELECT 1"); $r = $this->p("SELECT 1");
$connected = $this->isResult($r); if ($this->isResult($r)) {
// if ($this->isResult($r)) { $row = $this->toArray($r);
// $row = $this->toArray($r); $connected = ($row[0]['1'] == '1');
// $connected = ($row[0]['1'] == '1'); }
// }
break; break;
case self::MYSQLI: case self::MYSQLI:
$connected = $this->connection->ping(); $connected = true;
// $connected = $this->connection->ping();
break; break;
} }