MyBB Community Forums

Full Version: "null" in Blank Profile Fields
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The custom profile fields I've set up for my forum are working fine but many users who've left their profile fields blank are displaying "null" when outputted on a page.

Is there a query I can run to remove the "null" and ensure it wont happen with future users?

As you can see in the middle area, the user hadn't filled out the About Me field so it's outputting as "null"
[Image: d4726bbdef21c921cacaddb168fceb8f.png]
you can try to do it with php.
For example if the variable is $a:
if (!$a) {
    $a = "";