aboutsummaryrefslogtreecommitdiff
path: root/src/controller/ArticleController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller/ArticleController.php')
-rw-r--r--src/controller/ArticleController.php4
1 files changed, 2 insertions, 2 deletions
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
151 die; 151 die;
152 } 152 }
153 153
154 static public function deleteArticle(EntityManager $entityManager, array $json): Response 154 static public function deleteArticle(EntityManager $entityManager, array $data): Response // $data peut être un $_GET ou du JSON
155 { 155 {
156 $director = new Director($entityManager); 156 $director = new Director($entityManager);
157 if(!$director->makeArticleNode($json['id'], true)){ 157 if(!$director->makeArticleNode($data['id'], true)){
158 return new Response( 158 return new Response(
159 '{"success": false, "message": "Erreur: pas d\'article à supprimer"}', 159 '{"success": false, "message": "Erreur: pas d\'article à supprimer"}',
160 Response::HTTP_INTERNAL_SERVER_ERROR); // 500 160 Response::HTTP_INTERNAL_SERVER_ERROR); // 500