File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -289,11 +289,11 @@ function get_pkg_descr($package_name) {
289
289
$ services [] = $ pconfig ;
290
290
291
291
if (is_array ($ config ['captiveportal ' ])) {
292
- foreach ($ config ['captiveportal ' ] as $ id => $ setting ) {
292
+ foreach ($ config ['captiveportal ' ] as $ zone => $ setting ) {
293
293
if (isset ($ setting ['enable ' ])) {
294
294
$ pconfig = array ();
295
295
$ pconfig ['name ' ] = "captiveportal " ;
296
- $ pconfig ['zone ' ] = $ setting [ ' zone ' ] ;
296
+ $ pconfig ['zone ' ] = $ zone ;
297
297
$ pconfig ['description ' ] = gettext ("Captive Portal " ) . ": " .htmlspecialchars ($ setting ['zone ' ]);
298
298
$ services [] = $ pconfig ;
299
299
}
Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ function get_pkg_descr($package_name) {
82
82
$ services [] = $ svcconfig ;
83
83
84
84
if (is_array ($ config ['captiveportal ' ])) {
85
- foreach ($ config ['captiveportal ' ] as $ id => $ setting ) {
85
+ foreach ($ config ['captiveportal ' ] as $ zone => $ setting ) {
86
86
if (isset ($ setting ['enable ' ])) {
87
87
$ svcconfig = array ();
88
88
$ svcconfig ['name ' ] = "captiveportal " ;
89
- $ svcconfig ['zone ' ] = $ setting [ ' zone ' ] ;
89
+ $ svcconfig ['zone ' ] = $ zone ;
90
90
$ svcconfig ['description ' ] = gettext ("Captive Portal " ) . ": " .htmlspecialchars ($ setting ['zone ' ]);
91
91
$ services [] = $ svcconfig ;
92
92
}
You can’t perform that action at this time.
0 commit comments