diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-12-10 13:33:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-10 13:33:23 +0100 |
commit | e9a4231d4f39c5d330d581113f577ff3ef1a3cf9 (patch) | |
tree | 15e06322cc66e4b93f5442e53d8dcfd72e5a5dd2 /src | |
parent | 55bd59962c41b4ee34fde2569ddf093e5ad71fd8 (diff) | |
parent | 4ac0e659638a4b79f1ca58b673fdc12d07bbb06b (diff) | |
download | wallabag-e9a4231d4f39c5d330d581113f577ff3ef1a3cf9.tar.gz wallabag-e9a4231d4f39c5d330d581113f577ff3ef1a3cf9.tar.zst wallabag-e9a4231d4f39c5d330d581113f577ff3ef1a3cf9.zip |
Merge pull request #3465 from wallabag/fix-tests
Fix bad key matching
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/UserRestController.php | 2 |
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'])) { |