From 5d792074b15b8ab984285359d229e6600fe0bcff Mon Sep 17 00:00:00 2001 From: Gertjan Date: Mon, 23 Jun 2014 19:41:07 +0200 Subject: Update status_captiveportal.php Don't ask to select a zone if there is only ONE. --- usr/local/www/status_captiveportal.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php index 68e0d13..c9aab18 100644 --- a/usr/local/www/status_captiveportal.php +++ b/usr/local/www/status_captiveportal.php @@ -62,6 +62,9 @@ if (!is_array($config['captiveportal'])) $config['captiveportal'] = array(); $a_cp =& $config['captiveportal']; +if (count($a_cp) == 1) + $cpzone = current(array_keys($a_cp)); + include("head.inc"); ?> @@ -122,7 +125,8 @@ $mac_man = load_mac_manufacturer_table();


- + + 1) { ?>

+ -- cgit v1.1