From 061ea0b0d8b27afb22a70f291dbbc6695558000c Mon Sep 17 00:00:00 2001
From: Tim Repke <timmothey@gmx.de>
Date: Wed, 14 Oct 2015 23:51:09 +0200
Subject: [PATCH] fixed the captcha stuff manu fixed but broke

---
 registration-system/view/signups/index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/registration-system/view/signups/index.php b/registration-system/view/signups/index.php
index 995ff2f..e1606f2 100644
--- a/registration-system/view/signups/index.php
+++ b/registration-system/view/signups/index.php
@@ -241,9 +241,9 @@ class SignupMethods {
 
             // check captcha
             elseif($check == "captcha"){
-                unset($_SESSION['captcha']);
                 if(!(isset($_SESSION['captcha']) && strtolower($tmp) == strtolower($_SESSION['captcha']))) {
                     array_push($errarr, $errmess);
+                    unset($_SESSION['captcha']);
                     $datarr[$index] = "";
                 }
             }
-- 
GitLab