Make sure the connection exists before closing it

This commit is contained in:
Stanislas Dolcini 2018-10-05 19:45:42 +02:00
parent a9a9d7b2ef
commit f5908d99d3

View file

@ -32,7 +32,9 @@ class ConnectionHandler
public function __destruct() public function __destruct()
{ {
$db_Connection->close(); if ($this->db_Connection != null) {
$this->db_Connection->close();
}
} }
private function askSalt($login, $lang) private function askSalt($login, $lang)