summaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/register.php')
-rw-r--r--actions/register.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/actions/register.php b/actions/register.php
index ab49ad3fd..c3cfb8d25 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -345,6 +345,8 @@ class RegisterAction extends Action
{
$code = $this->trimmed('code');
+ $invite = null;
+
if ($code) {
$invite = Invitation::staticGet($code);
}