check if the proper variable is empty (#10017)

This commit is contained in:
VVelox
2019-03-24 18:40:37 -05:00
committed by Tony Murray
parent 74dbc43248
commit bc2a0e6c42

View File

@ -77,7 +77,7 @@ $component = new LibreNMS\Component();
$f2b_components = $component->getComponents($device_id, $options);
// if no jails, delete fail2ban components
if (empty($jails)) {
if (empty($f2b['jails'])) {
if (isset($f2b_components[$device_id])) {
foreach ($f2b_components[$device_id] as $component_id => $_unused) {
$component->deleteComponent($component_id);