]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/all.php
Merge remote-tracking branch 'statusnet/master'
[quix0rs-gnu-social.git] / actions / all.php
index b9f9bdd503608ea36335672b04dfe2240ef4f8f1..1d9509f6db14a29333b82a1da533855024ce9907 100644 (file)
@@ -207,7 +207,7 @@ class AllAction extends ProfileAction
     {
         // 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,