summaryrefslogtreecommitdiff
path: root/actions/leavegroup.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-01-06 16:21:29 -0800
committerZach Copley <zach@status.net>2010-01-06 16:21:29 -0800
commita1c3a2d3a12c1667492e4107007b31ec3a1f9c7b (patch)
tree0d1c3f6711c704567d0ed06834d33bf8ac32062a /actions/leavegroup.php
parent22a88fb850ecbfbf2c74accea605ee2942d3b0e4 (diff)
Fix broken API method /api/statusnet/groups/leave/:id.:format
Diffstat (limited to 'actions/leavegroup.php')
-rw-r--r--actions/leavegroup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/leavegroup.php b/actions/leavegroup.php
index 08fce1509..90c85e1a4 100644
--- a/actions/leavegroup.php
+++ b/actions/leavegroup.php
@@ -123,8 +123,8 @@ class LeavegroupAction extends Action
$result = $member->delete();
if (!$result) {
- common_log_db_error($member, 'INSERT', __FILE__);
- $this->serverError(sprintf(_('Could not remove user %s to group %s'),
+ common_log_db_error($member, 'DELETE', __FILE__);
+ $this->serverError(sprintf(_('Could not remove user %s from group %s'),
$cur->nickname, $this->group->nickname));
}