diff --git a/includes/Partials/Header.php b/includes/Partials/Header.php index 4e34805e..eaab4d70 100644 --- a/includes/Partials/Header.php +++ b/includes/Partials/Header.php @@ -117,16 +117,18 @@ final class Header extends Partial { foreach ( $groups as $group ) { $id = sprintf( $msgName, $group ); $msg = $this->skin->msg( $id )->text(); - // Nullpointer should not happen - $href = $this->title->newFromText( + $title = $this->title->newFromText( $this->skin->msg( sprintf( $msgName, $group ) )->text(), NS_PROJECT - )->getLinkURL(); - $html .= <<< HTML -
  • - $msg -
  • - HTML; + ); + if ( $title ) { + $href = $title->getLinkURL(); + $html .= <<< HTML +
  • + $msg +
  • + HTML; + } } $html = sprintf( '
  • ', $html );