Skip to content

Commit

Permalink
fix: prevent php warning when loading status info
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaser committed Nov 5, 2024
1 parent 0fc3e51 commit 9eda944
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct()

$dynamix = parse_ini_file('/boot/config/plugins/dynamix/dynamix.cfg', true) ?: array();

$locale = $_SESSION['locale'] ?? ($login_locale ?? $dynamix['display']['locale']);
$locale = $_SESSION['locale'] ?? ($login_locale ?? ($dynamix['display']['locale'] ?? "none"));
$tailscale_locale = (array) json_decode(file_get_contents("/usr/local/emhttp/plugins/tailscale/locales/en_US.json") ?: "{}", true);

if (file_exists("/usr/local/emhttp/plugins/tailscale/locales/{$locale}.json")) {
Expand Down

0 comments on commit 9eda944

Please sign in to comment.