1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Contacts: Missing $this->

This commit is contained in:
Thomas Tanghus 2013-04-30 22:36:24 +02:00
parent 6c1ff13838
commit 50b360a963

View File

@ -97,9 +97,9 @@ class GroupController extends BaseController {
*/
public function addToGroup() {
$response = new JSONResponse();
$categoryid = $request['categoryid'];
$ids = $request->post['contactids'];
$response->debug('request: '.print_r($request->post, true));
$categoryid = $this->request['categoryid'];
$ids = $this->request->post['contactids'];
$response->debug('request: '.print_r($this->request->post, true));
if(is_null($categoryid) || $categoryid === '') {
$response->bailOut(App::$l10n->t('Group ID missing from request.'));
@ -125,9 +125,9 @@ class GroupController extends BaseController {
*/
public function removeFromGroup() {
$response = new JSONResponse();
$categoryid = $request['categoryid'];
$ids = $request->post['contactids'];
$response->debug('request: '.print_r($request->post, true));
$categoryid = $this->request['categoryid'];
$ids = $this->request->post['contactids'];
$response->debug('request: '.print_r($this->request->post, true));
if(is_null($categoryid) || $categoryid === '') {
$response->bailOut(App::$l10n->t('Group ID missing from request.'));