From 126f64a793e63e2187b5c325b96d2e77534885ab Mon Sep 17 00:00:00 2001 From: billz Date: Sat, 19 Jul 2025 05:56:32 -0700 Subject: [PATCH] Fix PHP warning Fix PHP warning --- src/RaspAP/Networking/Hotspot/Validators/HostapdValidator.php | 2 +- templates/hostapd/security.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RaspAP/Networking/Hotspot/Validators/HostapdValidator.php b/src/RaspAP/Networking/Hotspot/Validators/HostapdValidator.php index e391fc49..864ff371 100644 --- a/src/RaspAP/Networking/Hotspot/Validators/HostapdValidator.php +++ b/src/RaspAP/Networking/Hotspot/Validators/HostapdValidator.php @@ -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 ]; } diff --git a/templates/hostapd/security.php b/templates/hostapd/security.php index cc7eb141..a0aa09a1 100644 --- a/templates/hostapd/security.php +++ b/templates/hostapd/security.php @@ -13,7 +13,7 @@
- +