Re-fixed the agents filter

This commit is contained in:
Alejandro Gallardo Escobar 2015-05-26 12:05:44 +02:00
parent d7801c2933
commit 5906f6dd44
2 changed files with 7 additions and 6 deletions

View File

@ -846,12 +846,13 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret
$result = db_get_all_rows_sql ($sql);
if ($result === false) {
if ($return){
$returned = ui_print_info_message ( __('No events'),'',true );
if ($return) {
$returned = ui_print_info_message (__('No events'), '', true);
return $returned;
}
else
echo ui_print_info_message ( __('No events') );
else {
echo ui_print_info_message (__('No events'));
}
}
else {
$table = new stdClass();

View File

@ -224,13 +224,13 @@ $server_id = (int)get_parameter('server_id', 0);
$text_agent = (string) get_parameter("text_agent", __('All'));
$text_agent = (string) get_parameter("text_agent");
$id_agent = get_parameter('id_agent', 0);
if ($id_agent != 0) {
$text_agent = db_get_value('nombre', 'tagente', 'id_agente', $id_agent);
if ($text_agent == false) {
$text_agent = __('All');
$text_agent = '';
$id_agent = 0;
}
}