plugins/SpecialUserFuncs.php
changeset 407 35d94240a197
parent 404 fb4f9e6f378f
child 411 d1a95497b68f
--- a/plugins/SpecialUserFuncs.php	Fri Feb 08 23:20:20 2008 -0500
+++ b/plugins/SpecialUserFuncs.php	Sun Feb 10 19:35:06 2008 -0500
@@ -938,7 +938,7 @@
             
             document.getElementById('e_username').innerHTML = '<br /><small><b>' + $lang.get('user_reg_msg_username_checking') + '</b></small>';
             ajaxGet('<?php echo scriptPath; ?>/ajax.php?title=null&_mode=checkusername&name='+escape(frm.username.value), function() {
-              if(ajax.readyState == 4)
+              if ( ajax.readyState == 4 && ajax.status == 200 )
                 if(ajax.responseText == 'good')
                 {
                   document.getElementById('s_username').src='<?php echo scriptPath; ?>/images/check.png';