X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FCreditsAction.php;h=ed58686ac575c5447c7f8e78ac2b28cbd229712e;hb=b3dc5c17af1aee314d568ba20bc1b4122573686f;hp=803695a77f36db22f8db09a76d09b28ce3fad9e4;hpb=2dd58ade75d15a5895c0c010e17b6f729a0f72fe;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/CreditsAction.php b/includes/actions/CreditsAction.php index 803695a77f..ed58686ac5 100644 --- a/includes/actions/CreditsAction.php +++ b/includes/actions/CreditsAction.php @@ -44,7 +44,6 @@ class CreditsAction extends FormlessAction { * @return string HTML */ public function onView() { - if ( $this->page->getID() == 0 ) { $s = $this->msg( 'nocredits' )->parse(); } else { @@ -132,7 +131,7 @@ class CreditsAction extends FormlessAction { $anon_ips = []; # Sift for real versus user names - /** @var $user User */ + /** @var User $user */ foreach ( $contributors as $user ) { $cnt--; if ( $user->isLoggedIn() ) { @@ -199,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(); }