r47227 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47226‎ | r47227 | r47228 >
Date:19:49, 13 February 2009
Author:aaron
Status:deferred
Tags:
Comment:
Minor JS cleanup
Modified paths:
  • /trunk/extensions/CheckUser/checkuser.js (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/checkuser.js
@@ -51,7 +51,8 @@
5252 // Get largest common bin_prefix
5353 } else {
5454 for( x=0; x<bin_prefix.length; x++ ) {
55 - if( bin_prefix[x] != bin[x] ) {
 55+ // Bin_prefix always smaller than bin unless a CIDR was used on bin
 56+ if( bin[x] == undefined || bin_prefix[x] != bin[x] ) {
5657 bin_prefix = bin_prefix.substring(0,x); // shorten bin_prefix
5758 break;
5859 }

Status & tagging log