X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpublic.php;h=af2fcff842ed737e2b2c4c07b9be14fac8c8aae7;hb=d48076253b02f8ab1f91e54289a189af7017db9f;hp=8c724466368624ab98932f9e6179852b70fd4876;hpb=f21f09f8b87cb84486e8316218d52f42a436f2a5;p=quix0rs-gnu-social.git diff --git a/actions/public.php b/actions/public.php index 8c72446636..af2fcff842 100644 --- a/actions/public.php +++ b/actions/public.php @@ -246,7 +246,7 @@ class PublicAction extends Action { // Show invite button, as long as site isn't closed, and // we have a logged in user. - if (!common_config('site', 'closed') && common_logged_in()) { + if (common_config('invite', 'enabled') && !common_config('site', 'closed') && common_logged_in()) { if (!common_config('site', 'private')) { $ibs = new InviteButtonSection( $this,