]> git.mxchange.org Git - friendica.git/blobdiff - mod/invite.php
Merge pull request #3500 from AndyHee/3.5.2rc
[friendica.git] / mod / invite.php
index fef5ce8341caf6473452c25e0b9d9371f92a7f1a..67cd23de745ea34979ac245c17b79edbc2c26c2a 100644 (file)
@@ -7,6 +7,8 @@
  *
  */
 
+use Friendica\App;
+
 require_once('include/email.php');
 
 function invite_post(App $a) {
@@ -83,7 +85,7 @@ function invite_post(App $a) {
                        $total ++;
                        $current_invites ++;
                        set_pconfig(local_user(),'system','sent_invites',$current_invites);
-                       if ($current_invites > $max_invites) {
+                       if($current_invites > $max_invites) {
                                notice( t('Invitation limit exceeded. Please contact your site administrator.') . EOL);
                                return;
                        }