From f96abcbb4e0f16568fca7db0bcf768659fa9a60c Mon Sep 17 00:00:00 2001 From: poslop Date: Mon, 2 Feb 2026 10:52:50 -0600 Subject: [PATCH] fixed config call --- gen_pc_sidecar.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gen_pc_sidecar.php b/gen_pc_sidecar.php index 24720e7..c9bf52f 100755 --- a/gen_pc_sidecar.php +++ b/gen_pc_sidecar.php @@ -170,8 +170,7 @@ function pull_mac_list(): array { } -function read_config_json_file(string $path): array { - global $COFNIG_PATH; +function read_config_json_file($path){ if (!is_file($path)) { throw new RuntimeException("Config file not found: {$path}"); } @@ -211,8 +210,9 @@ function read_config_json($key) { return $items; } -function read_config_json_string(array $config, string $key): string { - $value = $config[$key] ?? ''; +function read_config_json_string($key) { + global $CONFIG; + $value = $CONFIG[$key] ?? ''; return strtolower(trim((string)$value)); }