Current time: 07-05-2009, 03:11 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Error in xmlhttp.php
09-03-2008, 03:42 PM (This post was last modified: 09-03-2008 10:31 PM by Ryan Gordon.)
Post: #1
[F] Error in xmlhttp.php
In the file xmlhttp.php you can find this code:
PHP 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'] == || $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>
<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>
There should be a check if the arrays contain elements.

Greets,
Michael
-------------
German MyBB-Site
MyBBoard.de
Get the german languagepack here
Visit this user's website Find all posts by this user
09-03-2008, 10:31 PM
Post: #2
[F] [B] Error in xmlhttp.php
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

[Image: ryangordon.png]
My Blog - My Mods - My Site
Visit this user's website Find all posts by this user


Forum Jump: