Line 153 | Line 153 |
---|
trigger_error('NO_MODE', E_USER_ERROR); break; }
|
trigger_error('NO_MODE', E_USER_ERROR); break; }
|
| $has_required = false;
|
$sql = 'SELECT l.*, f.* FROM ' . $this->fields_lang_table . ' l,
| $sql = 'SELECT l.*, f.* FROM ' . $this->fields_lang_table . ' l,
|
Line 167 | Line 169 |
---|
{ /** @var \phpbb\profilefields\type\type_interface $profile_field */ $profile_field = $this->type_collection[$row['field_type']];
|
{ /** @var \phpbb\profilefields\type\type_interface $profile_field */ $profile_field = $this->type_collection[$row['field_type']];
|
| $has_required = $has_required || $row['field_required'];
|
$this->template->assign_block_vars('profile_fields', [ 'FIELD' => $profile_field->process_field_row('change', $row),
| $this->template->assign_block_vars('profile_fields', [ 'FIELD' => $profile_field->process_field_row('change', $row),
|
Line 177 | Line 181 |
---|
]); } $this->db->sql_freeresult($result);
|
]); } $this->db->sql_freeresult($result);
|
| $this->template->assign_var('PROFILE_FIELDS_REQUIRED', $has_required);
|
}
/**
| }
/**
|
Line 259 | Line 265 |
---|
* Replace Emoji and other 4bit UTF-8 chars not allowed by MySQL * with their Numeric Character Reference's Hexadecimal notation. */
|
* Replace Emoji and other 4bit UTF-8 chars not allowed by MySQL * with their Numeric Character Reference's Hexadecimal notation. */
|
| if (is_string($cp_data['pf_' . $row['field_ident']])) {
|
$cp_data['pf_' . $row['field_ident']] = utf8_encode_ucr($cp_data['pf_' . $row['field_ident']]);
|
$cp_data['pf_' . $row['field_ident']] = utf8_encode_ucr($cp_data['pf_' . $row['field_ident']]);
|
| }
|
$check_value = $cp_data['pf_' . $row['field_ident']];
| $check_value = $cp_data['pf_' . $row['field_ident']];
|