diff options
Diffstat (limited to 'settings/controller/groupscontroller.php')
-rw-r--r-- | settings/controller/groupscontroller.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/settings/controller/groupscontroller.php b/settings/controller/groupscontroller.php index 8236d5507f4..82e72821c3d 100644 --- a/settings/controller/groupscontroller.php +++ b/settings/controller/groupscontroller.php @@ -82,10 +82,7 @@ class GroupsController extends Controller { if($this->groupManager->groupExists($id)) { return new DataResponse( array( - 'status' => 'error', - 'data' => array( - 'message' => (string)$this->l10n->t('Group already exists.') - ) + 'message' => (string)$this->l10n->t('Group already exists.') ), Http::STATUS_CONFLICT ); @@ -93,10 +90,7 @@ class GroupsController extends Controller { if($this->groupManager->createGroup($id)) { return new DataResponse( array( - 'status' => 'success', - 'data' => array( - 'groupname' => $id - ) + 'groupname' => $id ), Http::STATUS_CREATED ); |