phpBB

Code Changes

File: phpbb/profilefields/manager.php

  Unmodified   Added   Modified   Removed
Line 153Line 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 167Line 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 177Line 181
			]);
}
$this->db->sql_freeresult($result);

			]);
}
$this->db->sql_freeresult($result);

 

$this->template->assign_var('PROFILE_FIELDS_REQUIRED', $has_required);

	}

/**

	}

/**