Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
musicman3 committed Apr 29, 2023
1 parent d781633 commit 00941dc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Cruder/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*/
class Db {

public static $db = false;
public static $db_functions = false;

/**
Expand Down Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 00941dc

Please sign in to comment.