diff --git a/code/web/public_php/login/class/ConnectionHandler.php b/code/web/public_php/login/class/ConnectionHandler.php index 110bb28e6..b364e9ce8 100644 --- a/code/web/public_php/login/class/ConnectionHandler.php +++ b/code/web/public_php/login/class/ConnectionHandler.php @@ -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)