From eab2d872a844a7b7312d7aaa9e52ddc43fab38aa Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 12 May 2017 17:35:22 -0400 Subject: Avoid PHP notice when regenerating API token for a user --- app/Controller/UserApiAccessController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Controller/UserApiAccessController.php') diff --git a/app/Controller/UserApiAccessController.php b/app/Controller/UserApiAccessController.php index 0f1c891e..f9628ae6 100644 --- a/app/Controller/UserApiAccessController.php +++ b/app/Controller/UserApiAccessController.php @@ -32,7 +32,7 @@ class UserApiAccessController extends BaseController 'api_access_token' => Token::getToken(), )); - $this->renderResponse(); + $this->renderResponse($user); } public function remove() @@ -45,10 +45,10 @@ class UserApiAccessController extends BaseController 'api_access_token' => null, )); - $this->renderResponse(); + $this->renderResponse($user); } - protected function renderResponse() + protected function renderResponse(array $user) { if ($this->request->isAjax()) { $this->show(); -- cgit v1.2.3