I'm on version 4.2.2 PL6.
Going to Who's Online, I get the following error:
Warning: preg_split() expects parameter 2 to be string, array given in ..../online.php(777) : eval()'d code on line 4
Warning: Invalid argument supplied for foreach() in ..../online.php(777) : eval()'d code on line 7
I took a look at the code in online.php, and I see preg_split used only once, in this piece of code:
if (trim($vbulletin->userinfo['buddylist']))
{
$buddylist = preg_split('/( )+/', trim($vbulletin->userinfo['buddylist']), -1, PREG_SPLIT_NO_EMPTY);
foreach ($buddylist AS $buddyuserid)
{
$buddy["$buddyuserid"] = 1;
}
}
I'm assuming that's the foreach the second warning mentions.
The odd thing is that it's not on every page of the Who's Online list, only on some.
I downloaded the latest version (4.2.5), but I see that code has not changed. Am I missing something? I checked for suspect files, but online.php did not show up.
Going to Who's Online, I get the following error:
Warning: preg_split() expects parameter 2 to be string, array given in ..../online.php(777) : eval()'d code on line 4
Warning: Invalid argument supplied for foreach() in ..../online.php(777) : eval()'d code on line 7
I took a look at the code in online.php, and I see preg_split used only once, in this piece of code:
if (trim($vbulletin->userinfo['buddylist']))
{
$buddylist = preg_split('/( )+/', trim($vbulletin->userinfo['buddylist']), -1, PREG_SPLIT_NO_EMPTY);
foreach ($buddylist AS $buddyuserid)
{
$buddy["$buddyuserid"] = 1;
}
}
I'm assuming that's the foreach the second warning mentions.
The odd thing is that it's not on every page of the Who's Online list, only on some.
I downloaded the latest version (4.2.5), but I see that code has not changed. Am I missing something? I checked for suspect files, but online.php did not show up.
Comment