X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Finvite.php;h=67cd23de745ea34979ac245c17b79edbc2c26c2a;hb=47bd3243cdb4a4840ca4d40452402a86b792ce1b;hp=fef5ce8341caf6473452c25e0b9d9371f92a7f1a;hpb=5a6da8b447430174ae231a3b8203fd4bd8416cc1;p=friendica.git diff --git a/mod/invite.php b/mod/invite.php index fef5ce8341..67cd23de74 100644 --- a/mod/invite.php +++ b/mod/invite.php @@ -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; }