aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_profile_fields.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php
index 10a1b899c7..4938f9cc33 100644
--- a/phpBB/includes/functions_profile_fields.php
+++ b/phpBB/includes/functions_profile_fields.php
@@ -115,6 +115,13 @@ class custom_profile
}
break;
+ case FIELD_BOOL:
+ if (!$field_value && $field_data['field_required'])
+ {
+ return 'FIELD_REQUIRED';
+ }
+ break;
+
case FIELD_INT:
if (empty($field_value) && !$field_data['field_required'])
{
@@ -537,7 +544,7 @@ class custom_profile
}
else
{
- if (!$preview && is_null($user->profile_fields[$user_ident]))
+ if (!$preview && isset($user->profile_fields[$user_ident]) && is_null($user->profile_fields[$user_ident]))
{
$value = NULL;
}