diff --git a/include/shared-manual.inc b/include/shared-manual.inc index 9d330f621..d693c2519 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -464,7 +464,8 @@ function manual_language_chooser($currentlang, $currentpage) { } // Print out the form with all the options - $format_options = function (array $links) use ($currentlang) { + $othersel = ' selected="selected"'; + $format_options = function (array $links) use ($currentlang, &$othersel) { $out = ''; $tab = str_repeat(' ', 6); foreach ($links as $link) { @@ -472,6 +473,7 @@ function manual_language_chooser($currentlang, $currentpage) { $selected = ''; if ($lang == $currentlang) { $selected = ' selected="selected"'; + $othersel = ''; } $out .= "$tab\n"; } @@ -483,7 +485,7 @@ function manual_language_chooser($currentlang, $currentpage) {