X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Flanguage%2FgenerateCollationData.php;h=210e907264bb220701714f980c33b5b1f65cb345;hb=4732f11a5d4b75616150e36a2c24ccaffc89c265;hp=a10592055f6fd1c0bf58774b1fe39efe3593f4c9;hpb=7c091e68e9e9f8dcc5c09353671566f24719009b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/language/generateCollationData.php b/maintenance/language/generateCollationData.php index a10592055f..210e907264 100644 --- a/maintenance/language/generateCollationData.php +++ b/maintenance/language/generateCollationData.php @@ -247,11 +247,7 @@ class GenerateCollationData extends Maintenance { if ( $weight !== $prevWeight ) { $this->groups[$prevWeight] = $group; $prevWeight = $weight; - if ( isset( $this->groups[$weight] ) ) { - $group = $this->groups[$weight]; - } else { - $group = []; - } + $group = $this->groups[$weight] ?? []; } $group[] = $cp; }