aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ApiBundle')
-rw-r--r--src/Wallabag/ApiBundle/Controller/UserRestController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/UserRestController.php b/src/Wallabag/ApiBundle/Controller/UserRestController.php
index a1378fc5..3a4dafcd 100644
--- a/src/Wallabag/ApiBundle/Controller/UserRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/UserRestController.php
@@ -77,7 +77,7 @@ class UserRestController extends WallabagRestController
77 $view->setFormat('json'); 77 $view->setFormat('json');
78 78
79 // handle errors in a more beautiful way than the default view 79 // handle errors in a more beautiful way than the default view
80 $data = json_decode($this->handleView($view)->getContent(), true)['children']; 80 $data = json_decode($this->handleView($view)->getContent(), true)['errors']['children'];
81 $errors = []; 81 $errors = [];
82 82
83 if (isset($data['username']['errors'])) { 83 if (isset($data['username']['errors'])) {