summaryrefslogtreecommitdiff
path: root/actions/apigroupmembership.php
diff options
context:
space:
mode:
authorEric Helgeson <erichelgeson@gmail.com>2009-11-16 14:59:32 -0500
committerEric Helgeson <erichelgeson@gmail.com>2009-11-16 15:00:36 -0500
commite14c88f6c52fddeeb26c71f13e93db7a8fabdd3b (patch)
tree3c6a30a1aaa779d4419aacaf88d57ac4dd291cfb /actions/apigroupmembership.php
parentb7a08fdacc91c783b1e99f5dda2f3ce31ec8a6ee (diff)
Consistant error for groups that dont exist in API
Diffstat (limited to 'actions/apigroupmembership.php')
-rw-r--r--actions/apigroupmembership.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/apigroupmembership.php b/actions/apigroupmembership.php
index d221a6418..dd2843161 100644
--- a/actions/apigroupmembership.php
+++ b/actions/apigroupmembership.php
@@ -87,6 +87,11 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction
{
parent::handle($args);
+ if (empty($this->group)) {
+ $this->clientError(_('Group not found!'), 404, $this->format);
+ return false;
+ }
+
// XXX: RSS and Atom
switch($this->format) {