From 729be8690bc28a32e3f2d9fdb936d6fd1661beb9 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Thu, 28 Sep 2017 02:36:31 +0000 Subject: [PATCH] Fix CreditsAction when user has no real name set but real names enabled Change-Id: Ief347739a1231fa8bd814694bdb5b4f44ba41a77 --- includes/actions/CreditsAction.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/actions/CreditsAction.php b/includes/actions/CreditsAction.php index 7025477803..ed58686ac5 100644 --- a/includes/actions/CreditsAction.php +++ b/includes/actions/CreditsAction.php @@ -198,6 +198,9 @@ class CreditsAction extends FormlessAction { protected function link( User $user ) { if ( $this->canShowRealUserName() && !$user->isAnon() ) { $real = $user->getRealName(); + if ( $real === '' ) { + $real = $user->getName(); + } } else { $real = $user->getName(); } -- 2.20.1