From f44a9b16d22d71cb33245423a500fc043b5830cc Mon Sep 17 00:00:00 2001 From: Cedric Date: Wed, 24 Jun 2026 09:54:50 +0200 Subject: [PATCH] Actualiser api.php --- api.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/api.php b/api.php index 9374e48..e1f0700 100644 --- a/api.php +++ b/api.php @@ -507,7 +507,6 @@ switch ($action) { } $pdo->beginTransaction(); - $pdo->beginTransaction(); try { foreach ($items as $rowData) { $title = $rowData['title'] ?? $rowData['Name'] ?? $rowData['Title'] ?? 'Sans titre'; @@ -640,6 +639,5 @@ switch ($action) { // On renvoie l'erreur en JSON pour que le JavaScript puisse l'afficher proprement echo json_encode(["success" => false, "error" => "Erreur serveur : " . $e->getMessage()]); } - echo json_encode(["success" => true, "imported" => $imported]); break; } \ No newline at end of file