X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FLinker.php;h=ae50c66ff26c522a47a8979b9b97529411871b4c;hp=eb7a44f6b4d102e69a6069615f94b9f391cd3880;hb=616525021b3691e30a980a42b837b7ad44ecfd09;hpb=742c4988b9c10af39909dceaec3997dcc8745b48 diff --git a/includes/Linker.php b/includes/Linker.php index eb7a44f6b4..ae50c66ff2 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -894,7 +894,7 @@ class Linker { * @since 1.16.3. $altUserName was added in 1.19. */ public static function userLink( $userId, $userName, $altUserName = false ) { - if ( $userName === '' ) { + if ( $userName === '' || $userName === false || $userName === null ) { wfDebug( __METHOD__ . ' received an empty username. Are there database errors ' . 'that need to be fixed?' ); return wfMessage( 'empty-username' )->parse();