X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fshowgroup.php;h=b6022840bf47997f89cda54970e56b9779d123b6;hb=5caeeabfc266985c8ac2cc19a2143092f9e1b5fd;hp=340e1833300a2615e38bba46ace3ad8151572ba9;hpb=22b10399aaa97061ed940f92f5b15f6aacfb1093;p=quix0rs-gnu-social.git diff --git a/actions/showgroup.php b/actions/showgroup.php index 340e183330..b6022840bf 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -244,7 +244,7 @@ class ShowgroupAction extends Action if ($this->group->location) { $this->elementStart('dl', 'entity_location'); $this->element('dt', null, _('Location')); - $this->element('dd', 'location', $this->group->location); + $this->element('dd', 'label', $this->group->location); $this->elementEnd('dl'); } @@ -275,10 +275,8 @@ class ShowgroupAction extends Action $cur = common_current_user(); if ($cur) { if ($cur->isMember($this->group)) { - if (!$cur->isAdmin($this->group)) { - $lf = new LeaveForm($this, $this->group); - $lf->show(); - } + $lf = new LeaveForm($this, $this->group); + $lf->show(); } else { $jf = new JoinForm($this, $this->group); $jf->show();