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.
var $show_error_messages = true;
// constructor
function db()
{
public function __construct() {
global $conf;
$this->dbHost = $conf['db_host'];
......@@ -56,6 +55,10 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
$this->dbCharset = $conf['db_charset'];
//$this->connect();
}
public function __destruct() {
$this->closeConn();
}
// error handler
function updateError($location)
......
Markdown is supported
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