aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_profile_fields.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-03-09 04:31:03 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2012-03-09 04:35:09 -0500
commitcd61de4bfdd1818d173e7413e53d8fd3d7ce1913 (patch)
tree3f7c8cec4382985bdd6a4a4caac5e39d9ca57007 /phpBB/includes/functions_profile_fields.php
parent345e8e084fd5ab7f99442ce6515a786a90806e2e (diff)
downloadforums-cd61de4bfdd1818d173e7413e53d8fd3d7ce1913.tar
forums-cd61de4bfdd1818d173e7413e53d8fd3d7ce1913.tar.gz
forums-cd61de4bfdd1818d173e7413e53d8fd3d7ce1913.tar.bz2
forums-cd61de4bfdd1818d173e7413e53d8fd3d7ce1913.tar.xz
forums-cd61de4bfdd1818d173e7413e53d8fd3d7ce1913.zip
[ticket/9084] Explain the logic.
PHPBB3-9084
Diffstat (limited to 'phpBB/includes/functions_profile_fields.php')
-rw-r--r--phpBB/includes/functions_profile_fields.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php
index 79701429e6..d44be16184 100644
--- a/phpBB/includes/functions_profile_fields.php
+++ b/phpBB/includes/functions_profile_fields.php
@@ -571,6 +571,11 @@ class custom_profile
$this->get_option_lang($field_id, $lang_id, FIELD_DROPDOWN, false);
}
+ // If a dropdown field is required, users
+ // cannot choose the "no value" option.
+ // They must choose one of the other options.
+ // Therefore, here we treat a value equal to
+ // the "no value" as a lack of value, i.e. NULL.
if ($value == $ident_ary['data']['field_novalue'] && $ident_ary['data']['field_required'])
{
return NULL;