diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e58c57bbb1..e9c291ef04 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2010-11-04 Miguel de Dios + + * operation/events/events_marquee.php: fixed the error SQL message and + save corretly the audit. + + Fixes: #3102788 + 2010-11-04 Ramon Novoa * godmode/servers/manage_export.php, diff --git a/pandora_console/operation/events/events_marquee.php b/pandora_console/operation/events/events_marquee.php index cf3a83f820..8b803ae1d0 100644 --- a/pandora_console/operation/events/events_marquee.php +++ b/pandora_console/operation/events/events_marquee.php @@ -28,8 +28,12 @@ require_once "../../include/functions.php"; require_once "../../include/functions_db.php"; require_once "../../include/functions_api.php"; +global $config; + session_start (); +$config["id_user"] = $_SESSION["id_usuario"]; + // http://es2.php.net/manual/en/ref.session.php#64525 // Session locking concurrency speedup! check_login (); @@ -44,10 +48,6 @@ if(!isInACL($_SERVER['REMOTE_ADDR'])){ exit; } -global $config; - -$config["id_user"] = $_SESSION["id_usuario"]; - $groups = get_user_groups ($config["id_user"], "AR"); //Otherwise select all groups the user has rights to. $sql_group_filter = " AND id_grupo IN (".implode (",", array_keys ($groups)).")";