From 03dbce1c7f1c9def315ad8ef52e1f5c0a806d6ed Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Sat, 24 Aug 2019 12:28:56 +0300 Subject: [PATCH] Revert "Now getInstance function will create new MysqliDb object if (#856) --- MysqliDb.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/MysqliDb.php b/MysqliDb.php index 738d9230..e264f7a9 100644 --- a/MysqliDb.php +++ b/MysqliDb.php @@ -428,11 +428,7 @@ public function mysqli() */ public static function getInstance() { - if(isset(self::$_instance)) { - return self::$_instance; - } else { - return new MysqliDb(); - } + return self::$_instance; } /**