Skip to content

Commit 03dbce1

Browse files
authored
Revert "Now getInstance function will create new MysqliDb object if (#856)
1 parent 4f2a93d commit 03dbce1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

MysqliDb.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,7 @@ public function mysqli()
428428
*/
429429
public static function getInstance()
430430
{
431-
if(isset(self::$_instance)) {
432-
return self::$_instance;
433-
} else {
434-
return new MysqliDb();
435-
}
431+
return self::$_instance;
436432
}
437433

438434
/**

0 commit comments

Comments
 (0)