Skip to content

Commit b7fb885

Browse files
committed
Merge pull request pfsense#168 from bcyrill/cp_status
Fix Captive Portal status
2 parents 7f2bd97 + dff2ea2 commit b7fb885

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

usr/local/www/status_services.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,11 @@ function get_pkg_descr($package_name) {
289289
$services[] = $pconfig;
290290

291291
if (is_array($config['captiveportal'])) {
292-
foreach ($config['captiveportal'] as $id => $setting) {
292+
foreach ($config['captiveportal'] as $zone => $setting) {
293293
if (isset($setting['enable'])) {
294294
$pconfig = array();
295295
$pconfig['name'] = "captiveportal";
296-
$pconfig['zone'] = $setting['zone'];
296+
$pconfig['zone'] = $zone;
297297
$pconfig['description'] = gettext("Captive Portal") . ": ".htmlspecialchars($setting['zone']);
298298
$services[] = $pconfig;
299299
}

usr/local/www/widgets/widgets/services_status.widget.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ function get_pkg_descr($package_name) {
8282
$services[] = $svcconfig;
8383

8484
if (is_array($config['captiveportal'])) {
85-
foreach ($config['captiveportal'] as $id => $setting) {
85+
foreach ($config['captiveportal'] as $zone => $setting) {
8686
if (isset($setting['enable'])) {
8787
$svcconfig = array();
8888
$svcconfig['name'] = "captiveportal";
89-
$svcconfig['zone'] = $setting['zone'];
89+
$svcconfig['zone'] = $zone;
9090
$svcconfig['description'] = gettext("Captive Portal") . ": ".htmlspecialchars($setting['zone']);
9191
$services[] = $svcconfig;
9292
}

0 commit comments

Comments
 (0)