From d5bede0b2e2579493a3096da9e496b429c49d6b7 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 25 May 2011 07:51:17 +0000 Subject: [PATCH] 2011-05-25 Miguel de Dios * include/functions_agents.php: erased lost trace in source code. * include/functions_db.php: in function "db_pandora_audit" added the check the exists the id_user. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4379 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/include/functions_agents.php | 2 +- pandora_console/include/functions_db.php | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index a4a0a155b8..b5b408e502 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-05-25 Miguel de Dios + + * include/functions_agents.php: erased lost trace in source code. + + * include/functions_db.php: in function "db_pandora_audit" added the check + the exists the id_user. + 2011-05-23 Miguel de Dios * include/functions_agents.php: cleaned source code style. diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 221d8afcf4..da5d254783 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -1030,7 +1030,7 @@ function agents_get_modules ($id_agent = null, $details = false, $filter = false else $details_new[] = $detail; } - html_debug_print($details_new,"/tmp/prueba.txt"); + $details = io_safe_input ($details_new); } else diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index 577f5a81b6..656ca01ca9 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -121,7 +121,10 @@ function db_pandora_audit($accion, $descripcion, $user_id = false, $ip = false, $id = $user_id; } else { - $id = $config["id_user"]; + if (isset($config["id_user"])) { + $id = $config["id_user"]; + } + else $id = 0; } $accion = io_safe_input($accion);