summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-12-27 14:40:16 +0100
committerPhilip Häusler <msquare@notrademark.de>2011-12-27 14:40:16 +0100
commite0ffeb100568890ac32717d8ddf98d6d501655fc (patch)
treea0f135661026dadb6d560a50bbbd0f548fe685ad
parent9b46a838703817e590648ebd4cab90cd6525ebc4 (diff)
registration fix
-rw-r--r--includes/pages/guest_login.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php
index 7d6362d3..a775697e 100644
--- a/includes/pages/guest_login.php
+++ b/includes/pages/guest_login.php
@@ -62,10 +62,11 @@ function guest_register() {
}
}
- if (isset ($_REQUEST['tshirt_size']) && isset ($tshirt_sizes[$_REQUEST['tshirt_size']]))
- $tshirt_size = $_REQUEST['tshirt_size'];
- else {
- $ok = false;
+ if ($enable_tshirt_size) {
+ if (isset ($_REQUEST['tshirt_size']) && isset ($tshirt_sizes[$_REQUEST['tshirt_size']]))
+ $tshirt_size = $_REQUEST['tshirt_size'];
+ else
+ $ok = false;
}
if (isset ($_REQUEST['password']) && strlen($_REQUEST['password']) >= 6) {
@@ -119,7 +120,7 @@ function guest_register() {
success(Get_Text("makeuser_writeOK4"));
//if (!isset ($_SESSION['uid']))
- redirect(page_link_to('login'));
+ redirect(page_link_to('login'));
}
}