[Tags performance] Fixed not init filter

This commit is contained in:
fermin831 2018-10-10 19:13:51 +02:00
parent 4ac4f46daf
commit 18ad7a2ce9
2 changed files with 5 additions and 1 deletions

View File

@ -2802,6 +2802,11 @@ function modules_get_state_condition($state, $prefix = "tae") {
$prefix.estado = ".AGENT_MODULE_STATUS_NORMAL_ALERT."
OR $prefix.estado = ".AGENT_MODULE_STATUS_NORMAL."
)";
case AGENT_MODULE_STATUS_NOT_NORMAL:
return "(
$prefix.estado <> " . AGENT_MODULE_STATUS_NORMAL . "
AND $prefix.estado <> " . AGENT_MODULE_STATUS_NORMAL_ALERT . "
)";
}
// If the state is not an expected state, return no condition
return "1=1";

View File

@ -490,7 +490,6 @@ if (is_ajax ()) {
asort($result);
}
else {
$modules = agents_get_modules();
if($idAgents[0] < 0){
if($selection_mode == 'common'){
$sql_agent_total = 'SELECT count(*) FROM tagente WHERE disabled=0';