mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed function, and add condition if agent is not init. Tiquet: #2804
(cherry picked from commit 4d73c6ca7c3c8889b267fe79e711afedc6260cc0)
This commit is contained in:
parent
df6b3efe1a
commit
6858a12c57
@ -26,6 +26,9 @@ 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)
|
||||||
|
return true;
|
||||||
|
|
||||||
if ($row['estado'] == AGENT_MODULE_STATUS_NO_DATA || $row['estado'] == AGENT_MODULE_STATUS_NOT_INIT )
|
if ($row['estado'] == AGENT_MODULE_STATUS_NO_DATA || $row['estado'] == AGENT_MODULE_STATUS_NOT_INIT )
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user