forked from GNUsocial/gnu-social
		
	Fixes for apigrouplist - notice spew from undefined var, notice spew from missing escape in sprintf format
This commit is contained in:
		| @@ -66,7 +66,7 @@ class ApiGroupListAction extends ApiBareAuthAction | |||||||
|     { |     { | ||||||
|         parent::prepare($args); |         parent::prepare($args); | ||||||
|  |  | ||||||
|         $this->user   = $this->getTargetUser($id); |         $this->user   = $this->getTargetUser(null); | ||||||
|         $this->groups = $this->getGroups(); |         $this->groups = $this->getGroups(); | ||||||
|  |  | ||||||
|         return true; |         return true; | ||||||
| @@ -100,7 +100,7 @@ class ApiGroupListAction extends ApiBareAuthAction | |||||||
|             array('nickname' => $this->user->nickname) |             array('nickname' => $this->user->nickname) | ||||||
|         ); |         ); | ||||||
|         $subtitle   = sprintf( |         $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, |             $this->user->nickname, | ||||||
|             $sitename |             $sitename | ||||||
|         ); |         ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user