X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Flogging%2FLogFormatter.php;h=e8dd8982b5ad3f215e9325e8849ddcec877051c0;hb=20717fd0310c637ec6c5ef2ca06c17474011129b;hp=3e942ae08d12facc2a9a59f88505e8923ca71329;hpb=61702397aa04572251869935245c07a0821f6c4a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index 3e942ae08d..e8dd8982b5 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -613,9 +613,13 @@ class LogFormatter { $this->setShowUserToolLinks( false ); $user = User::newFromName( $value ); - $value = Message::rawParam( $this->makeUserLink( $user ) ); - $this->setShowUserToolLinks( $saveLinkFlood ); + if ( !$user ) { + $value = $this->msg( 'empty-username' )->text(); + } else { + $value = Message::rawParam( $this->makeUserLink( $user ) ); + $this->setShowUserToolLinks( $saveLinkFlood ); + } break; case 'title': $title = Title::newFromText( $value );