I have a little problem, Since recently (I think today, I have no clue what happened to make it change) I am receiving the warning
"Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/mgc_cb_evo/class_misc.php on line 420"
All I know is that this error occurs when you join certain usergroups and for each usergroup I join that has this problem, I get a line of this same error.
The code in class_misc.php around line 420 is:
// 2 - Member group test
if (!$hasaccess && !empty($this->registry->userinfo['membergroupids']))
{
$found = 0;
$ugipds_array = explode(',', $this->registry->userinfo['membergroupids']);
foreach ($ugipds_array as $index => $ugpid)
{
if (in_array($ugpid,$command['usergroupids']))
{
$hasaccess = 1;
}
}
}
And more specificly, line 420 is:
if (in_array($ugpid,$command['usergroupids']))
I realize that this error is caused by a modification (the chatbox), But even so, I hope you will be able to help me because I don't want to install a different chatbox nor do I want to remove my usergroups.
This error appears to only occur for people who are in a custom usergroup.
And it appears to be only on the index page (Within forums or topic pages, I don't get this error)
Thanks for your time
|