Make sure the connection exists before closing it
This commit is contained in:
parent
a9a9d7b2ef
commit
f5908d99d3
1 changed files with 3 additions and 1 deletions
|
@ -32,7 +32,9 @@ class ConnectionHandler
|
|||
|
||||
public function __destruct()
|
||||
{
|
||||
$db_Connection->close();
|
||||
if ($this->db_Connection != null) {
|
||||
$this->db_Connection->close();
|
||||
}
|
||||
}
|
||||
|
||||
private function askSalt($login, $lang)
|
||||
|
|
Loading…
Reference in a new issue