mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
[Tags performance] Fixed not init filter
This commit is contained in:
parent
4ac4f46daf
commit
18ad7a2ce9
@ -2802,6 +2802,11 @@ function modules_get_state_condition($state, $prefix = "tae") {
|
|||||||
$prefix.estado = ".AGENT_MODULE_STATUS_NORMAL_ALERT."
|
$prefix.estado = ".AGENT_MODULE_STATUS_NORMAL_ALERT."
|
||||||
OR $prefix.estado = ".AGENT_MODULE_STATUS_NORMAL."
|
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
|
// If the state is not an expected state, return no condition
|
||||||
return "1=1";
|
return "1=1";
|
||||||
|
@ -490,7 +490,6 @@ if (is_ajax ()) {
|
|||||||
asort($result);
|
asort($result);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$modules = agents_get_modules();
|
|
||||||
if($idAgents[0] < 0){
|
if($idAgents[0] < 0){
|
||||||
if($selection_mode == 'common'){
|
if($selection_mode == 'common'){
|
||||||
$sql_agent_total = 'SELECT count(*) FROM tagente WHERE disabled=0';
|
$sql_agent_total = 'SELECT count(*) FROM tagente WHERE disabled=0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user