Added function 'modules_is_not_init'
(cherry picked from commit a8162a1876
)
This commit is contained in:
parent
706971f763
commit
a64f1eda1d
|
@ -23,6 +23,15 @@ include_once($config['homedir'] . "/include/functions_agents.php");
|
|||
include_once($config['homedir'] . '/include/functions_users.php');
|
||||
include_once($config['homedir'] . '/include/functions_tags.php');
|
||||
|
||||
function modules_is_not_init($id_agent_module) {
|
||||
$row = db_get_row('tagente_estado', 'id_agente_modulo', $id_agent_module);
|
||||
|
||||
if ($row['estado'] == AGENT_MODULE_STATUS_NO_DATA)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function modules_is_disable_agent($id_agent_module) {
|
||||
$sql = "
|
||||
SELECT disabled
|
||||
|
|
Loading…
Reference in New Issue