mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Fixed function, and add condition if agent is not init. Tiquet: #2804
(cherry picked from commit df6b3efe1ac74dfe33cedd70cd425c3028997301)
This commit is contained in:
parent
d63dc5fa7c
commit
ae36c26676
@ -26,7 +26,7 @@ include_once($config['homedir'] . '/include/functions_tags.php');
|
|||||||
function modules_is_not_init($id_agent_module) {
|
function modules_is_not_init($id_agent_module) {
|
||||||
$row = db_get_row('tagente_estado', 'id_agente_modulo', $id_agent_module);
|
$row = db_get_row('tagente_estado', 'id_agente_modulo', $id_agent_module);
|
||||||
|
|
||||||
if ($row['estado'] == AGENT_MODULE_STATUS_NO_DATA)
|
if ($row['estado'] == AGENT_MODULE_STATUS_NO_DATA || $row['estado'] == AGENT_MODULE_STATUS_NOT_INIT )
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user