From c65133f9b93b19d2b515bbcc8cbab2647ba03e6e Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 24 Aug 2022 12:46:48 +0200 Subject: [PATCH] firewall: one more PHP warning --- src/opnsense/mvc/app/library/OPNsense/Firewall/ForwardRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/mvc/app/library/OPNsense/Firewall/ForwardRule.php b/src/opnsense/mvc/app/library/OPNsense/Firewall/ForwardRule.php index 5249b5013..66315da92 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Firewall/ForwardRule.php +++ b/src/opnsense/mvc/app/library/OPNsense/Firewall/ForwardRule.php @@ -145,7 +145,7 @@ class ForwardRule extends Rule // When reflection is enabled our ruleset should cover all $interflist = array($tmp['interface']); - if (empty($tmp['disabled']) && !$tmp['nordr'] && in_array($tmp['natreflection'], array("purenat", "enable"))) { + if (empty($tmp['disabled']) && !$tmp['nordr'] && in_array($tmp['natreflection'] ?? '', ['purenat', 'enable'])) { $is_ipv4 = $this->isIpV4($tmp); $reflinterf = $this->reflectionInterfaces($tmp['interface']); foreach ($reflinterf as $interf) {