2008-09-03, 03:42 PM
In the file xmlhttp.php you can find this code:
while($buddy = $db->fetch_array($query))
{
$buddy_name = format_name($buddy['username'], $buddy['usergroup'], $buddy['displaygroup']);
$profile_link = build_profile_link($buddy_name, $buddy['uid'], '_blank');
if($buddy['lastactive'] > $timecut && ($buddy['invisible'] == 0 || $mybb->user['usergroup'] == 4) && $buddy['lastvisit'] != $buddy['lastactive'])
{
eval("\$online[] = \"".$templates->get("xmlhttp_buddyselect_online")."\";");
}
else
{
eval("\$offline[] = \"".$templates->get("xmlhttp_buddyselect_offline")."\";");
}
}
$online = implode("", $online);
$offline = implode("", $offline);
If the array $online or $offline is empty you get an error:Quote:<error>There should be a check if the arrays contain elements.
<dateline>1220365626</dateline>
<script>xmlhttp.php</script>
<line>690</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed</message>
</error>