diff --git a/pandora_console/include/ajax/agent.php b/pandora_console/include/ajax/agent.php index 05a81df863..d4850e3322 100644 --- a/pandora_console/include/ajax/agent.php +++ b/pandora_console/include/ajax/agent.php @@ -92,10 +92,11 @@ if ($search_agents && (!is_metaconsole() || $force_local)) { } } - switch ($all) { - case 'enabled': - $filter['disabled'] = 0; - break; + if ($all === 'enabled') { + $filter['disabled'] = 1; + } + else { + $filter['disabled'] = 0; } $data = array();