diff --git a/includes/configure_client.php b/includes/configure_client.php index a9125806..56bd896a 100755 --- a/includes/configure_client.php +++ b/includes/configure_client.php @@ -50,7 +50,7 @@ function DisplayWPAConfig() } elseif (preg_match('/update(\d+)/', $post, $post_match)) { // NB, multiple protocols are separated with a forward slash ('/') $tmp_networks[$_POST['ssid' . $post_match[1]]] = array( - 'protocol' => ( $_POST['protocol' . $post_match[1]] === 'Open' ? 'Open' : 'WPA' ), + 'protocol' => ( $_POST['protocol' . $post_match[1]] === $wifi::SECURITY_OPEN ? $wifi::SECURITY_OPEN : 'WPA' ), 'passphrase' => $_POST['passphrase' . $post_match[1]], 'configured' => true ); diff --git a/templates/wifi_stations/network.php b/templates/wifi_stations/network.php index 26685647..322bdf45 100644 --- a/templates/wifi_stations/network.php +++ b/templates/wifi_stations/network.php @@ -10,7 +10,7 @@ $wifi = new WiFiManager(); -