wlanap.cgi: Don't try to show status if there is no interface

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-09-20 13:16:44 +02:00
parent 03a71cd521
commit b165dcdd80

View File

@@ -354,6 +354,8 @@ END
&Header::closebox();
if ($INTF) {
&Header::opensection();
my @status = `iw dev $INTF info`;
@@ -366,7 +368,7 @@ if (@status) {
END
}
my @status = `iw dev $INTF station dump`;
@status = `iw dev $INTF station dump`;
if (@status) {
print <<END;
@@ -377,6 +379,8 @@ END
}
&Header::closesection();
}
&Header::closebigbox();
&Header::closepage();