aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-12-08 12:10:26 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-12-08 12:10:28 +0100
commit4ac0e659638a4b79f1ca58b673fdc12d07bbb06b (patch)
treee20ae487e145fff4041e4c851e6ecbc2c7a2b034 /src/Wallabag/ApiBundle
parente99be2c134d836a26faa1defb3b1b473834df58b (diff)
downloadwallabag-4ac0e659638a4b79f1ca58b673fdc12d07bbb06b.tar.gz
wallabag-4ac0e659638a4b79f1ca58b673fdc12d07bbb06b.tar.zst
wallabag-4ac0e659638a4b79f1ca58b673fdc12d07bbb06b.zip
Fix bad key matching
I didn't try to find which package introduced a BC (might be user-bundle or jms serializer)
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'])) {