hum yes small bug, open mgc_chatbox.php.
Find :
Code:
/* Tri des messages selon l'ordre d'affichage (ascendant ou descendant) */
$nb_chats = $vbulletin->db->num_rows($chat_messages);
if ($vbulletin->options['mgc_cb_chats_ordre']) { // ascendant
$cpt = $nb_chats - 1;
while ($chat = $vbulletin->db->fetch_array($chat_messages)) {
$tableau_chats[$cpt] = $chat;
$cpt--;
}
ksort($tableau_chats);
} else { //descendant
while ($chat = $vbulletin->db->fetch_array($chat_messages)) {
$tableau_chats[] = $chat;
}
}
Replace it by :
Code:
/* Tri des messages selon l'ordre d'affichage (ascendant ou descendant) */
$nb_chats = $vbulletin->db->num_rows($chat_messages);
if($nb_chats) {
if ($vbulletin->options['mgc_cb_chats_ordre']) { // ascendant
$cpt = $nb_chats - 1;
while ($chat = $vbulletin->db->fetch_array($chat_messages)) {
$tableau_chats[$cpt] = $chat;
$cpt--;
}
ksort($tableau_chats);
} else { //descendant
while ($chat = $vbulletin->db->fetch_array($chat_messages)) {
$tableau_chats[] = $chat;
}
}
}
Will correct it in the next version