Fix Database getInstance method and connection call
This commit is contained in:
@@ -7,7 +7,7 @@ use App\Core\Database;
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
|
||||
try {
|
||||
$db = Database::getInstance()->getConnection();
|
||||
$db = Database::getConnection();
|
||||
|
||||
// Disable Foreign Key checks explicitly on the active connection
|
||||
$db->exec("SET FOREIGN_KEY_CHECKS = 0;");
|
||||
|
||||
Reference in New Issue
Block a user