From 00941dca8de6b4f37de0323a9a2aa0e189a90e91 Mon Sep 17 00:00:00 2001 From: musicman3 Date: Sat, 29 Apr 2023 14:15:18 +0300 Subject: [PATCH] fix --- src/Cruder/Db.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Cruder/Db.php b/src/Cruder/Db.php index 985bd88..5469757 100644 --- a/src/Cruder/Db.php +++ b/src/Cruder/Db.php @@ -25,7 +25,6 @@ */ class Db { - public static $db = false; public static $db_functions = false; /** @@ -57,11 +56,7 @@ public static function set(array $data): void { * @return object */ public static function connect(): Cruder { - - if (!self::$db) { - self::$db = new Cruder(); - } - return self::$db; + return new Cruder(); } /**