Fix PHP warning

Fix PHP warning
This commit is contained in:
billz
2025-07-19 05:56:32 -07:00
parent 3b352b12d8
commit 126f64a793
2 changed files with 2 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ class HostapdValidator
'max_num_sta' => $post['max_num_sta'],
'beacon_interval' => $post['beacon_interval'] ?? null,
'disassoc_low_ack' => $post['disassoc_low_ackEnable'] ?? null,
'bridge' => $post['bridgedEnable'] ? 'br0' : null,
'bridge' => ($post['bridgedEnable'] ?? false) ? 'br0' : null
];
}

View File

@@ -13,7 +13,7 @@
<div class="mb-3">
<label for="cbx80211w"><?php echo _("802.11w"); ?></label>
<i class="fas fa-question-circle text-muted" data-bs-toggle="tooltip" data-bs-placement="auto" title="802.11w extends strong cryptographic protection to a select set of robust management frames, including Deauthentication, Disassociation and certain categories of Action Management frames. Collectively, this is known as Management Frame Protection (MFP)."></i>
<?php SelectorOptions('80211w', $arr80211w, $arrConfig['ieee80211w'], 'cbx80211w'); ?>
<?php SelectorOptions('80211w', $arr80211w, $arrConfig['ieee80211w'] ?? 0, 'cbx80211w'); ?>
</div>
<label for="txtwpapassphrase"><?php echo _("Pre-shared key (PSK)"); ?></label>