X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_del%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=blobdiff_plain;f=maintenance%2Flanguage%2FgenerateCollationData.php;h=210e907264bb220701714f980c33b5b1f65cb345;hb=102bfd66c84dbb9b690c78ad0c3975b7dc8f1a0a;hp=a10592055f6fd1c0bf58774b1fe39efe3593f4c9;hpb=b3f03fd75efbf1a01910ccb27e9e8860de70aa29;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; }