
William Cairns - 2017-09-09 15:50:03
While adding PHPUnit tests to my project using this package I got numerous errors. By checking if it is initialized before closing I could prevent the errors.
/**
* Disconnect from db server
* Called automatically from __destruct function
*/
public function disconnect()
{
if( self::$inst != null )
{
$this->link->close();
}
}