Minor fixes

This commit is contained in:
Jose Gonzalez 2023-02-08 12:58:23 +01:00
parent f14d324490
commit 4d9c6ab33a
2 changed files with 13 additions and 7 deletions

View File

@ -398,6 +398,8 @@ $selectOsUp = false;
$selectOsDown = false;
$selectGroupUp = false;
$selectGroupDown = false;
$selectRemoteUp = false;
$selectRemoteDown = false;
switch ($sortField) {
case 'remote':
switch ($sort) {
@ -627,7 +629,7 @@ $sql = sprintf(
);
$agents = db_get_all_rows_sql($sql);
$custom_font_size = '';
// Prepare pagination.
// ui_pagination($total_agents, "index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id=$ag_group&recursion=$recursion&search=$search&sort_field=$sortField&sort=$sort&disabled=$disabled&os=$os", $offset);
if ($agents !== false) {
@ -895,7 +897,7 @@ if ($agents !== false) {
$ag_group,
$recursion,
$search,
$offsetArg,
'',
$sortField,
$sort,
$disabled
@ -925,7 +927,7 @@ if ($agents !== false) {
$ag_group,
$recursion,
$search,
$offsetArg,
'',
$sortField,
$sort,
$disabled

View File

@ -298,6 +298,8 @@ $selectDescriptionUp = false;
$selectDescriptionDown = false;
$selectLastContactUp = false;
$selectLastContactDown = false;
$selectRemoteUp = false;
$selectRemoteDown = false;
$order = null;
switch ($sortField) {
@ -674,13 +676,15 @@ if (empty($agents)) {
$agents = [];
}
if ($config['language'] == 'ja'
|| $config['language'] == 'zh_CN'
|| $own_info['language'] == 'ja'
|| $own_info['language'] == 'zh_CN'
if ($config['language'] === 'ja'
|| $config['language'] === 'zh_CN'
|| $own_info['language'] === 'ja'
|| $own_info['language'] === 'zh_CN'
) {
// Adds a custom font size for Japanese and Chinese language.
$custom_font_size = 'custom_font_size';
} else {
$custom_font_size = '';
}
// Urls to sort the table.