Skip to content

Commit 313c1c6

Browse files
committed
[SecurityBundle] Prevent RuntimeException "Impossible to access an attribute ("security_enabled") on a null variable."
1 parent e3a13c7 commit 313c1c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/views/Collector/security.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
</div>
178178
</div>
179179

180-
<div class="tab {{ collector.firewall.security_enabled is empty ? 'disabled' }}">
180+
<div class="tab {{ (not collector.firewall or collector.firewall.security_enabled is empty) ? 'disabled' }}">
181181
<h3 class="tab-title">Firewall</h3>
182182
<div class="tab-content">
183183
{% if collector.firewall %}

0 commit comments

Comments
 (0)