mirror of
https://github.com/unraid/webgui.git
synced 2026-04-24 02:58:57 -05:00
PHP8 error if dynamix.cfg doesn't exist
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
@mkdir("/tmp/gui.search");
|
||||
|
||||
extract(@parse_ini_file("/boot/config/plugins/dynamix/dynamix.cfg"));
|
||||
$locale = $locale ?: "";
|
||||
$locale = $locale ?? "";
|
||||
if ( $locale != @file_get_contents("/tmp/gui.search/locale") ) {
|
||||
@unlink("/tmp/gui.search/searchResults.json");
|
||||
}
|
||||
@@ -143,4 +143,4 @@ function endsWith($string, $endString) {
|
||||
}
|
||||
return (substr($string, -$len) === $endString);
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user