summaryrefslogtreecommitdiff
path: root/extensions/tmwa/backend/models/account.php
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/tmwa/backend/models/account.php')
-rw-r--r--extensions/tmwa/backend/models/account.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/tmwa/backend/models/account.php b/extensions/tmwa/backend/models/account.php
index 7f5b0fe..aaabd41 100644
--- a/extensions/tmwa/backend/models/account.php
+++ b/extensions/tmwa/backend/models/account.php
@@ -3,6 +3,7 @@ class TMWAccount
{
const GENDER_MALE = 'M';
const GENDER_FEMALE = 'F';
+ const GENDER_NEUTRAL = 'N';
const BAD_STRING_DESC = 'Only alphanumeric characters are allowed.';
private $errors;
@@ -71,9 +72,10 @@ class TMWAccount
}
if ($this->gender != self::GENDER_MALE &&
- $this->gender != self::GENDER_FEMALE )
+ $this->gender != self::GENDER_FEMALE &&
+ $this->gender != self::GENDER_NEUTRAL)
{
- $errors[] = 'Gender has to be Male or Female!';
+ $errors[] = 'Gender has to be picked!';
}
if (!filter_var($this->email, FILTER_VALIDATE_EMAIL))