Commit 682ed39d authored by tbrehm's avatar tbrehm
Browse files

Added destructor to mysql server class.

parent 99efe963
...@@ -45,8 +45,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -45,8 +45,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
var $show_error_messages = true; var $show_error_messages = true;
// constructor // constructor
function db() public function __construct() {
{
global $conf; global $conf;
$this->dbHost = $conf['db_host']; $this->dbHost = $conf['db_host'];
...@@ -56,6 +55,10 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -56,6 +55,10 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
$this->dbCharset = $conf['db_charset']; $this->dbCharset = $conf['db_charset'];
//$this->connect(); //$this->connect();
} }
public function __destruct() {
$this->closeConn();
}
// error handler // error handler
function updateError($location) function updateError($location)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment