]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixes for apigrouplist - notice spew from undefined var, notice spew from missing...
authorBrion Vibber <brion@pobox.com>
Tue, 30 Mar 2010 18:44:13 +0000 (11:44 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 30 Mar 2010 18:45:41 +0000 (11:45 -0700)
actions/apigrouplist.php

index 98fdb0497a3c3bb5e59194d254d25d04abc0e901..a6f5d03ccf38dacf0c8117e267b607ae57232e9c 100644 (file)
@@ -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
         );