X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fgroupbyid.php;h=b82a861e97319931b3f322cd1024e59e241969bf;hb=0a2c51510ca785b5e3564fc0830518527929dc38;hp=f18e4540c05ac84b2d6db5a9c5d81e253eb43486;hpb=9573f725c12e291e4bd3e3156557e41a10753d76;p=quix0rs-gnu-social.git diff --git a/actions/groupbyid.php b/actions/groupbyid.php index f18e4540c0..b82a861e97 100644 --- a/actions/groupbyid.php +++ b/actions/groupbyid.php @@ -71,17 +71,15 @@ class GroupbyidAction extends Action if (!$id) { // TRANS: Client error displayed referring to a group's permalink without providing a group ID. $this->clientError(_('No ID.')); - return false; } common_debug("Got ID $id"); - $this->group = User_group::staticGet('id', $id); + $this->group = User_group::getKV('id', $id); if (!$this->group) { // TRANS: Client error displayed referring to a group's permalink for a non-existing group ID. $this->clientError(_('No such group.'), 404); - return false; } return true;