A larger chunk of my code around these lines is:
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($value, substr(fetch_censored_text($value), 0, $profilefield['maxlength']));
$value = (empty($value) AND $value != '0') ? false : $value;
}
else if ($all_fields == 'register' AND $profilefield['data'] !== '')
{
$value = unhtmlspecialchars($profilefield['data']);
}
else
{
continue;
}
$customfields .= "$profilefield[title] : $value\n";
$regex_check = true;
I think were looking at altered files already due to version differences. But... its works... so no sure what might go wrong or now here.
You said:
Quote:
I think your "trim" has too many params to it and might work by accident.
|
What do you see wrong in my code and where?