From f0d1cd5d68579b462cf01a4a9f7d558a231bc072 Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 9 Oct 2025 14:40:54 +0200 Subject: =?UTF-8?q?description=20de=20page=20d=C3=A9plac=C3=A9e=20dans=20l?= =?UTF-8?q?a=20table=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/ArticleController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/controller/ArticleController.php') diff --git a/src/controller/ArticleController.php b/src/controller/ArticleController.php index 8bbef19..fabd997 100644 --- a/src/controller/ArticleController.php +++ b/src/controller/ArticleController.php @@ -151,10 +151,10 @@ class ArticleController die; } - static public function deleteArticle(EntityManager $entityManager, array $json): Response + static public function deleteArticle(EntityManager $entityManager, array $data): Response // $data peut être un $_GET ou du JSON { $director = new Director($entityManager); - if(!$director->makeArticleNode($json['id'], true)){ + if(!$director->makeArticleNode($data['id'], true)){ return new Response( '{"success": false, "message": "Erreur: pas d\'article à supprimer"}', Response::HTTP_INTERNAL_SERVER_ERROR); // 500 -- cgit v1.2.3