MyBB Community Forums

Full Version: usercp error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello guys i have a problem with usercp.php

when my members updates their profile they have seen an error like in the picture

[Image: untitled13sw.jpg]

but i can't see any problem with my account and when i create different account..

what is this? i didn't understand what's happening..i'm waiting your replies thanks.
I'd consider this a bug in MyBB. It assumes some user input is an array when it might not be. Certain browsers might handle the field in an unexpected way (which explains why only some users see the error).

Here's a simple patch for the bug...

Open usercp.php and find this code (line 440)...
if($type == "multiselect" || $type == "checkbox")
Replace it with...
if(($type == "multiselect" || $type == "checkbox") && is_array($mybb->input[$field]))
I wonder, what browser does this appear on? Because it works fine on my forums on both IE and Firefox.
thanks WDZ i will try what you said and keep you posted about if it works or not..take care guys
Ryan, that appears if none checkbox is selected, got it myself.
thanks everybody i have solved my problem