It could be different because mine came from v3.8.3, but it could also be that I made it confusing by not including before/after code, just the "after". Here's before/after:
Code:
if (in_array($profilefield['profilefieldid'], $field_ids) AND ($all_fields != 'register' OR $profilefield['editable']))
{
$value = trim(substr(fetch_censored_text($value), 0, $profilefield['maxlength']));
$value = (empty($value) AND $value != '0') ? false : $value;
}
Code:
if (in_array($profilefield['profilefieldid'], $field_ids) AND ($all_fields != 'register' OR $profilefield['editable']))
{
if (!$profilefield['hidden'])
$value = fetch_censored_text($value);
$value = trim(substr($value, 0, $profilefield['maxlength']));
$value = (empty($value) AND $value != '0') ? false : $value;
}
ETA: Posted that before you repsonded. Kind of surprised that works - you may want to make sure it matches what I posted, I think your "trim" has too many params to it and might work by accident.