Skip to content

Commit

Permalink
Prevent undefined offset error in viewdoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Apr 1, 2023
1 parent 6313c61 commit 6181329
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion viewdoc.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ if ($doc_to_show) {

# Web locales may have a country code but the documentation doesn't at the moment
# So test both the full locale and the version stripped down to language code only.
list($shortlang,$rest) = explode ("_", $showlang);
if (strpos($showlang, "_")) {
list($shortlang,$rest) = explode ("_", $showlang);
} else {
$shortlang = $showlang;
}
$reqlangs = array ($showlang);

# First evaluate the nightly builds, they are located on a different server
Expand Down

0 comments on commit 6181329

Please sign in to comment.