Quote:
Originally Posted by kh99
I think this line:
Code:
$value = trim($value, substr(fetch_censored_text($value), 0, $profilefield['maxlength']));
Should be:
Code:
$value = trim(substr($value, 0, $profilefield['maxlength']));
I think what you have works because trim() only looks at the first argument, but the value doesn't go through substr() to make sure it's no longer then the max length.
ETA: ...but it's not a big deal, I'm pretty sure it will be OK the way it is.
|
Well I am using your edit here and still seems to work fine with no noticeable errors.
The Next Step:
My next step that I have to get solved is how to code a php file so I can pull from my database that one private field which would generate a list of my members last names... any takers on this one???