mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:00:16 +00:00
Remove redundancies.
This commit is contained in:
parent
e10339a47f
commit
acadb8ecdb
1 changed files with 1 additions and 15 deletions
|
@ -218,21 +218,7 @@ class dba {
|
|||
|
||||
$this->error = '';
|
||||
|
||||
// Check the connection (This can reconnect the connection - if configured)
|
||||
switch ($this->driver) {
|
||||
case 'pdo':
|
||||
// Not sure if this really is working like expected
|
||||
$connected = ($this->db->getAttribute(PDO::ATTR_CONNECTION_STATUS) != "");
|
||||
break;
|
||||
case 'mysqli':
|
||||
$connected = $this->db->ping();
|
||||
break;
|
||||
case 'mysql':
|
||||
$connected = mysql_ping($this->db);
|
||||
break;
|
||||
}
|
||||
|
||||
$connstr = ($connected ? "Connected" : "Disonnected");
|
||||
$connstr = ($this->connected() ? "Connected" : "Disonnected");
|
||||
|
||||
$stamp1 = microtime(true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue