#11001 fix languaje tips window

This commit is contained in:
Jonathan 2023-05-18 16:32:30 +02:00
parent 442daf0282
commit cebe92296b
1 changed files with 2 additions and 0 deletions

View File

@ -270,6 +270,7 @@ class TipsWindow
}
$sql .= sprintf(' AND id_profile IN (%s)', $idProfilesFilter);
$sql .= sprintf(' AND id_lang = "%s"', $language);
$sql .= ' ORDER BY CASE WHEN id_lang = "'.$language.'" THEN id_lang END DESC, RAND()';
@ -320,6 +321,7 @@ class TipsWindow
WHERE enable = "1" ';
$sql .= sprintf(' AND id_profile IN (%s)', $idProfilesFilter);
$sql .= sprintf(' AND id_lang = "%s"', $config['language']);
$sql .= ' ORDER BY CASE WHEN id_lang = "'.$config['language'].'" THEN id_lang END DESC, RAND()';