fixed errors cps in meta and others
This commit is contained in:
parent
0040837f4b
commit
0f9b7d13ee
|
@ -32,8 +32,11 @@ require_once($config['homedir'] . '/include/functions_users.php');
|
||||||
* @return boolean The result to check if the agent is in the DB.
|
* @return boolean The result to check if the agent is in the DB.
|
||||||
*/
|
*/
|
||||||
function agents_check_agent_exists($id_agent, $show_disabled = true) {
|
function agents_check_agent_exists($id_agent, $show_disabled = true) {
|
||||||
$agent = db_get_value_filter('id_agente', 'tagente',
|
$agent = db_get_value_filter(
|
||||||
array('id_agente' => $id_agent, 'disabled' => !$show_disabled));
|
'id_agente',
|
||||||
|
'tagente',
|
||||||
|
array('id_agente' => $id_agent, 'disabled' => !$show_disabled)
|
||||||
|
);
|
||||||
|
|
||||||
if (!empty($agent)) {
|
if (!empty($agent)) {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -330,8 +330,8 @@ function modules_delete_agent_module ($id_agent_module) {
|
||||||
|
|
||||||
$where = array ('id_agent_module' => $id_agent_module);
|
$where = array ('id_agent_module' => $id_agent_module);
|
||||||
|
|
||||||
$enterprise_include = enterprise_include_once(
|
enterprise_include_once("include/functions_agents.php");
|
||||||
'include/functions_config_agents.php');
|
$enterprise_include = enterprise_include_once('include/functions_config_agents.php');
|
||||||
|
|
||||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||||
if (is_array($id_agent_module)) {
|
if (is_array($id_agent_module)) {
|
||||||
|
|
Loading…
Reference in New Issue