fix: PHP8 bug in Translations.php

This commit is contained in:
ljm42
2023-01-13 17:31:42 -07:00
parent eedfd7d828
commit 85d3e76b8f

View File

@@ -165,7 +165,7 @@ foreach($uri as $more) {
}
}
// help text
if ($_SERVER['REQUEST_URI'][0]=='/') {
if ($_SERVER['REQUEST_URI'][0]??''=='/') {
if (!file_exists($help)) file_put_contents($help,serialize(parse_help_file($root)));
$language = array_merge($language,unserialize(file_get_contents($help)));
}