Browse Source

Fix user limit reached notice

When USER_LIMIT == 0 (no limit) $UserCount is always > USER_LIMIT so
the notice is always shown. Actually this commit just implements the
exact opposite of the logic on line 137.
Syunka 7 years ago
parent
commit
d3732302e2
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/user/invite.php

+ 1
- 1
sections/user/invite.php View File

@@ -108,7 +108,7 @@ View::show_header('Invites', $JSIncludes);
108 108
       <a href="user.php?action=invitetree<? if ($Sneaky) { echo '&amp;userid='.$UserID; } ?>" class="brackets">Invite tree</a>
109 109
     </div>
110 110
   </div>
111
-<? if ($UserCount >= USER_LIMIT && !check_perms('site_can_invite_always')) { ?>
111
+<? if (!($UserCount <= USER_LIMIT || USER_LIMIT == 0 || check_perms('site_can_invite_always'))) { ?>
112 112
   <div class="box pad notice">
113 113
     <p>Because the user limit has been reached you are unable to send invites at this time.</p>
114 114
   </div>

Loading…
Cancel
Save