mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
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.
|
||||
*/
|
||||
function agents_check_agent_exists($id_agent, $show_disabled = true) {
|
||||
$agent = db_get_value_filter('id_agente', 'tagente',
|
||||
array('id_agente' => $id_agent, 'disabled' => !$show_disabled));
|
||||
$agent = db_get_value_filter(
|
||||
'id_agente',
|
||||
'tagente',
|
||||
array('id_agente' => $id_agent, 'disabled' => !$show_disabled)
|
||||
);
|
||||
|
||||
if (!empty($agent)) {
|
||||
return true;
|
||||
|
@ -330,8 +330,8 @@ function modules_delete_agent_module ($id_agent_module) {
|
||||
|
||||
$where = array ('id_agent_module' => $id_agent_module);
|
||||
|
||||
$enterprise_include = enterprise_include_once(
|
||||
'include/functions_config_agents.php');
|
||||
enterprise_include_once("include/functions_agents.php");
|
||||
$enterprise_include = enterprise_include_once('include/functions_config_agents.php');
|
||||
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
if (is_array($id_agent_module)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user