From dff2ea2c2c08771fe12a422f80464475685cf52e Mon Sep 17 00:00:00 2001 From: bcyrill Date: Fri, 6 Jul 2012 00:45:27 +0200 Subject: Fix Captive Portal status --- usr/local/www/widgets/widgets/services_status.widget.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/www/widgets') diff --git a/usr/local/www/widgets/widgets/services_status.widget.php b/usr/local/www/widgets/widgets/services_status.widget.php index ec24101..58538fa 100644 --- a/usr/local/www/widgets/widgets/services_status.widget.php +++ b/usr/local/www/widgets/widgets/services_status.widget.php @@ -82,11 +82,11 @@ $svcconfig['description'] = gettext("NTP clock sync"); $services[] = $svcconfig; if (is_array($config['captiveportal'])) { - foreach ($config['captiveportal'] as $id => $setting) { + foreach ($config['captiveportal'] as $zone => $setting) { if (isset($setting['enable'])) { $svcconfig = array(); $svcconfig['name'] = "captiveportal"; - $svcconfig['zone'] = $setting['zone']; + $svcconfig['zone'] = $zone; $svcconfig['description'] = gettext("Captive Portal") . ": ".htmlspecialchars($setting['zone']); $services[] = $svcconfig; } -- cgit v1.1