aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-12-10 13:33:23 +0100
committerGitHub <noreply@github.com>2017-12-10 13:33:23 +0100
commite9a4231d4f39c5d330d581113f577ff3ef1a3cf9 (patch)
tree15e06322cc66e4b93f5442e53d8dcfd72e5a5dd2 /src/Wallabag
parent55bd59962c41b4ee34fde2569ddf093e5ad71fd8 (diff)
parent4ac0e659638a4b79f1ca58b673fdc12d07bbb06b (diff)
downloadwallabag-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/Wallabag')
-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'])) {