diff options
Diffstat (limited to 'src/controller/UserController.php')
| -rw-r--r-- | src/controller/UserController.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/controller/UserController.php b/src/controller/UserController.php index 750b01b..b68421f 100644 --- a/src/controller/UserController.php +++ b/src/controller/UserController.php | |||
| @@ -36,7 +36,7 @@ class UserController | |||
| 36 | $entityManager->flush(); | 36 | $entityManager->flush(); |
| 37 | } | 37 | } |
| 38 | else{ | 38 | else{ |
| 39 | $error = $form->getErrors()[0]; // la 1ère erreur sera affichée | 39 | $error = $form->getError(); |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | if(!empty($error)){ | 42 | if(!empty($error)){ |
| @@ -96,7 +96,7 @@ class UserController | |||
| 96 | $entityManager->flush(); | 96 | $entityManager->flush(); |
| 97 | } | 97 | } |
| 98 | else{ | 98 | else{ |
| 99 | $error = $form->getErrors()[0]; // la 1ère erreur sera affichée | 99 | $error = $form->getError(); |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | if(!empty($error)){ | 102 | if(!empty($error)){ |
| @@ -154,7 +154,7 @@ class UserController | |||
| 154 | } | 154 | } |
| 155 | } | 155 | } |
| 156 | else{ | 156 | else{ |
| 157 | $error = $form->getErrors()[0]; // la 1ère erreur sera affichée | 157 | $error = $form->getError(); |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | if(!empty($error)){ | 160 | if(!empty($error)){ |
| @@ -193,7 +193,7 @@ class UserController | |||
| 193 | } | 193 | } |
| 194 | } | 194 | } |
| 195 | else{ | 195 | else{ |
| 196 | $error = $form->getErrors()[0]; // la 1ère erreur sera affichée | 196 | $error = $form->getError(); |
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | if(!empty($error)){ | 199 | if(!empty($error)){ |
