From 03285d601159cb2fdf5a2fabab68e7c89d808d3f Mon Sep 17 00:00:00 2001 From: dg9vh Date: Sat, 25 Mar 2017 19:45:02 +0000 Subject: [PATCH] closes https://github.com/dg9vh/MMDVMHost-Dashboard/issues/130 --- scripts/switchnetwork.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/switchnetwork.php b/scripts/switchnetwork.php index a0de2a9..e9ad61e 100644 --- a/scripts/switchnetwork.php +++ b/scripts/switchnetwork.php @@ -56,7 +56,8 @@ checkSetup(); include "../include/sysinfo.php"; if (defined("JSONNETWORK")) { $netname = $_GET['network']; - $network = $networks[$netname]; + $key = recursive_array_search($netname,$networks); + $network = $networks[$key]; echo "
"; echo "INI:".$network['ini']; setDMRNetwork($network['label']);