Index: /home/dpouliot/workspace/moodle-1-6-5U/mod/chat/gui_header_js/jsupdate.php
===================================================================
--- /home/dpouliot/workspace/moodle-1-6-5U/mod/chat/gui_header_js/jsupdate.php	(révision 275)
+++ /home/dpouliot/workspace/moodle-1-6-5U/mod/chat/gui_header_js/jsupdate.php	(copie de travail)
@@ -127,8 +127,8 @@
         set_field('chat_users', 'lastping', $chatuser->lastping, 'id', $chatuser->id  );
 
         if ($refreshusers) {
-            echo "if (parent.users.document.anchors[0] != null) {" .
-                    "parent.users.location.href = parent.users.document.anchors[0].href;}\n";
+            echo "if (parent.users.document.anchors[1] != null) {" .
+                    "parent.users.location.href = parent.users.document.anchors[1].href;}\n";
         } else {
             foreach($us as $uid=>$lastping) {
                 $min = (int) ($lastping/60);
