From 60f8e330e721cba5ea33327b7489f94ac8dd586c Mon Sep 17 00:00:00 2001 From: Shadow Date: Thu, 5 Dec 2013 07:39:32 +0200 Subject: [PATCH] Update Account.php --- GameEngine/Account.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/GameEngine/Account.php b/GameEngine/Account.php index e26596ef..e13b1159 100644 --- a/GameEngine/Account.php +++ b/GameEngine/Account.php @@ -96,11 +96,13 @@ class Account { $form->addError("agree",AGREE_ERROR); } if($form->returnErrors() > 0) { - $_SESSION['errorarray'] = $form->getErrors(); - $_SESSION['valuearray'] = $_POST; + $form->addError("invt",$_POST['invited']); + $_SESSION['errorarray'] = $form->getErrors(); + $_SESSION['valuearray'] = $_POST; + - header("Location: anmelden.php"); - } + header("Location: anmelden.php"); + } else { if(AUTH_EMAIL){ $act = $generator->generateRandStr(10);