Anyone looking at this PHP Code can spot what could be causing two commas separating users when a real user is on?
PHP Code:
<phpcode><![CDATA[if ($vbulletin->options['xfakeonoff']) {
$numbervisible2 = 0;
if ($vbulletin->options['xfakemn']>0)
{
$xsayi1 = $vbulletin->options['xfakemn'];
$xsayi2 = $vbulletin->options['xfakeug'];
$forumusers = $db->query("SELECT *,
IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "user WHERE usergroupid = '$xsayi2' ORDER BY RAND() LIMIT $xsayi1");
while ($loggedin = $db->fetch_array($forumusers))
{
$numbervisible2++;
fetch_musername($loggedin);
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '" ;');
}
}
$totalonline = $totalonline + $numbervisible2 + $vbulletin->options['xfakemv'];
$numberguest = $numberguest + $vbulletin->options['xfakemv'];
$numberregistered = $numberregistered + $numbervisible2;
unset($forumusers, $loggedin, $numbervisible2, $xsayi1);
$db->free_result($forumusers);
}]]></phpcode>