X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FGenderCache.php;h=7228814d4702edf3eace6108473b4576f4e618b8;hb=0ada062ce62a261e55eb2bfbe9c6f74ffbaa05e5;hp=1ec39a54d690172bd2826cda27db6a93adb86603;hpb=c3de9b16fb6b05b708cf8afa0cd66990e4043abf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/GenderCache.php b/includes/cache/GenderCache.php index 1ec39a54d6..7228814d47 100644 --- a/includes/cache/GenderCache.php +++ b/includes/cache/GenderCache.php @@ -171,7 +171,7 @@ class GenderCache { $res = $dbr->select( $table, $fields, $conds, $comment, [], $joins ); foreach ( $res as $row ) { - $this->cache[$row->user_name] = $row->up_value ? $row->up_value : $default; + $this->cache[$row->user_name] = $row->up_value ?: $default; } }