We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99efe96 commit 682ed39Copy full SHA for 682ed39
1 file changed
server/lib/classes/db_mysql.inc.php
@@ -45,8 +45,7 @@ class db
45
var $show_error_messages = true;
46
47
// constructor
48
- function db()
49
- {
+ public function __construct() {
50
51
global $conf;
52
$this->dbHost = $conf['db_host'];
@@ -56,6 +55,10 @@ function db()
56
55
$this->dbCharset = $conf['db_charset'];
57
//$this->connect();
58
}
+
59
+ public function __destruct() {
60
+ $this->closeConn();
61
+ }
62
63
// error handler
64
function updateError($location)
0 commit comments