Commit 7b2c02e5 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

fixed auth_check_required_fields so it assumes email is set

fixes bug #1915 where if a user has more than one email set it thinks there are none set at all
parent 9ec94101
......@@ -683,7 +683,7 @@ function auth_check_required_fields() {
$elements = array();
foreach(ArtefactTypeProfile::get_mandatory_fields() as $field => $type) {
if (get_profile_field($USER->get('id'), $field) != null) {
if ($field == 'email' || get_profile_field($USER->get('id'), $field) != null) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment