diff options
Diffstat (limited to 'actions/apigroupmembership.php')
-rw-r--r-- | actions/apigroupmembership.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/actions/apigroupmembership.php b/actions/apigroupmembership.php index b31e47b39..dd2843161 100644 --- a/actions/apigroupmembership.php +++ b/actions/apigroupmembership.php @@ -34,7 +34,7 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/api.php'; +require_once INSTALLDIR . '/lib/apiprivateauth.php'; /** * List 20 newest members of the group specified by name or ID. @@ -49,7 +49,7 @@ require_once INSTALLDIR . '/lib/api.php'; * @link http://status.net/ */ -class ApiGroupMembershipAction extends ApiAction +class ApiGroupMembershipAction extends ApiPrivateAuthAction { var $group = null; var $profiles = null; @@ -87,6 +87,11 @@ class ApiGroupMembershipAction extends ApiAction { parent::handle($args); + if (empty($this->group)) { + $this->clientError(_('Group not found!'), 404, $this->format); + return false; + } + // XXX: RSS and Atom switch($this->format) { |