diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-30 11:44:13 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-30 11:45:41 -0700 |
commit | 034e88bcbceafd47753d4368ce74df85c432abb6 (patch) | |
tree | 0814b2bc58ddb8b846efec7f56f514a114566b62 /actions/apigrouplist.php | |
parent | 0284e1315cc95d94e1e348a0af3ac88f1abcd5ff (diff) |
Fixes for apigrouplist - notice spew from undefined var, notice spew from missing escape in sprintf format
Diffstat (limited to 'actions/apigrouplist.php')
-rw-r--r-- | actions/apigrouplist.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/apigrouplist.php b/actions/apigrouplist.php index 98fdb0497..a6f5d03cc 100644 --- a/actions/apigrouplist.php +++ b/actions/apigrouplist.php @@ -66,7 +66,7 @@ class ApiGroupListAction extends ApiBareAuthAction { parent::prepare($args); - $this->user = $this->getTargetUser($id); + $this->user = $this->getTargetUser(null); $this->groups = $this->getGroups(); return true; @@ -100,7 +100,7 @@ class ApiGroupListAction extends ApiBareAuthAction array('nickname' => $this->user->nickname) ); $subtitle = sprintf( - _("Groups %1$s is a member of on %2$s."), + _("Groups %1\$s is a member of on %2\$s."), $this->user->nickname, $sitename ); |