X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Flanguage%2FgenerateCollationData.php;h=f43d75f2ea1e9e2508541e557fdc6d75a3cc5212;hb=b4999a404c5a8084ece8c2599c183d8bfa99ff7a;hp=210e907264bb220701714f980c33b5b1f65cb345;hpb=7ddab17aac1103fa080b50759ab6ca906caa554e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/language/generateCollationData.php b/maintenance/language/generateCollationData.php index 210e907264..f43d75f2ea 100644 --- a/maintenance/language/generateCollationData.php +++ b/maintenance/language/generateCollationData.php @@ -202,7 +202,7 @@ class GenerateCollationData extends Maintenance { // For each character with an entry in allkeys.txt, overwrite the implicit // entry in $this->weights that came from the UCD. // Also gather a list of tertiary weights, for use in selecting the group header - while ( false !== ( $line = fgets( $file ) ) ) { + while ( ( $line = fgets( $file ) ) !== false ) { // We're only interested in single-character weights, pick them out with a regex $line = trim( $line ); if ( !preg_match( '/^([0-9A-F]+)\s*;\s*([^#]*)/', $line, $m ) ) {