Re-fixed the agents filter
This commit is contained in:
parent
d7801c2933
commit
5906f6dd44
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue