Fix Database getInstance method and connection call

This commit is contained in:
Hamza-Ayed
2026-08-26 17:41:11 +03:00
parent 17dd963f33
commit a2f72a1c29
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -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;");