fix wtv-admin:/unban when the var isnt in config.
This commit is contained in:
@@ -65,6 +65,7 @@ wtv-expire-all: wtv-admin:/unban`;
|
|||||||
<tr>
|
<tr>
|
||||||
<td colspan=3 height=6>
|
<td colspan=3 height=6>
|
||||||
<h3>Unban an SSID</h3>`;
|
<h3>Unban an SSID</h3>`;
|
||||||
|
if (minisrv_config.config.ssid_block_list) {
|
||||||
if (minisrv_config.config.ssid_block_list.length > 0) {
|
if (minisrv_config.config.ssid_block_list.length > 0) {
|
||||||
data += '<form action="wtv-admin:/unban" method="POST">';
|
data += '<form action="wtv-admin:/unban" method="POST">';
|
||||||
data += '<select name="unban_ssid" multiple size="8">';
|
data += '<select name="unban_ssid" multiple size="8">';
|
||||||
@@ -76,6 +77,9 @@ wtv-expire-all: wtv-admin:/unban`;
|
|||||||
} else {
|
} else {
|
||||||
data += "No SSIDs are in the ban list.<br><br>";
|
data += "No SSIDs are in the ban list.<br><br>";
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
data += "No SSIDs are in the ban list.<br><br>";
|
||||||
|
}
|
||||||
if (ssids_removed.length > 0) {
|
if (ssids_removed.length > 0) {
|
||||||
if (config_changed) {
|
if (config_changed) {
|
||||||
data += "<strong>SSID(s) " + ssids_removed + " removed from the ban list.</strong><br><br>";
|
data += "<strong>SSID(s) " + ssids_removed + " removed from the ban list.</strong><br><br>";
|
||||||
|
|||||||
Reference in New Issue
Block a user