From: Brion Vibber Date: Tue, 30 Mar 2010 18:44:13 +0000 (-0700) Subject: Fixes for apigrouplist - notice spew from undefined var, notice spew from missing... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=034e88bcbceafd47753d4368ce74df85c432abb6;p=quix0rs-gnu-social.git Fixes for apigrouplist - notice spew from undefined var, notice spew from missing escape in sprintf format --- diff --git a/actions/apigrouplist.php b/actions/apigrouplist.php index 98fdb0497a..a6f5d03ccf 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 );