Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [General] "null" in Blank Profile Fields
#1
Not Solved
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]
Hello I'm Wally, the administrator of Sharree.com
Reply
#2
Not Solved
you can try to do it with php.
For example if the variable is $a:
if (!$a) {
    $a = "";
}
[Image: ZbrcFs]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)