Commit 43459aea authored by Ravi Patel's avatar Ravi Patel Committed by Alexander Butenko

Now getInstance function will create new MysqliDb object if one is not present. (#794)

parent 3a2ca851
......@@ -428,7 +428,11 @@ class MysqliDb
*/
public static function getInstance()
{
return self::$_instance;
if(isset(self::$_instance)) {
return self::$_instance;
} else {
return new MysqliDb();
}
}
/**
......
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