diff --git a/CustomNavBlocks.php b/CustomNavBlocks.php index dec791c..f6430c7 100644 --- a/CustomNavBlocks.php +++ b/CustomNavBlocks.php @@ -48,7 +48,7 @@ function addCustomNavBlocks($skin, $tpl) { } else { # some shortcuts $definition = $tmp[0]; - $blockTitle = $tmp[1]; + $blockTitle = $tmp[1] ?? ""; # first, we need a title object: $title = Title::newFromText($definition, NS_MEDIAWIKI);