]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-12304, fix double text, merged from MOODLE_18_STABLE"
authordongsheng <dongsheng>
Tue, 10 Jun 2008 05:17:49 +0000 (05:17 +0000)
committerdongsheng <dongsheng>
Tue, 10 Jun 2008 05:17:49 +0000 (05:17 +0000)
mod/chat/gui_header_js/jsupdate.php

index b9616fcfaa3c3b9825a08b73813ea0a2d660d79a..5c39d2e1845d2ab96eb23f99667c04ad46989a3b 100644 (file)
         $DB->set_field('chat_users', 'lastping', $chatuser->lastping, array('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);