mirror of
https://github.com/friendica/friendica
synced 2024-11-19 14:23:42 +00:00
Test the tes
This commit is contained in:
parent
d6a1a836f1
commit
84924d1c05
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue