[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 08/09: Fix : gettext for empty string calls t
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 08/09: Fix : gettext for empty string calls the file header |
Date: |
Fri, 9 Aug 2024 15:18:17 -0400 (EDT) |
sparkyx pushed a commit to branch unstable
in repository noalyss.
commit b5e0fa4a8341b3a87f1304c53975c9466e8cac25
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Aug 9 21:11:55 2024 +0200
Fix : gettext for empty string calls the file header
---
html/direct.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/direct.php b/html/direct.php
index 7c1a4b2c6..d145a1eb8 100644
--- a/html/direct.php
+++ b/html/direct.php
@@ -33,7 +33,7 @@ $http=new \HttpInput();
$g_user=new Noalyss_user($cn);
$g_user->Check();
$g_user->check_dossier($http->get('gDossier'));
-$res=$cn->exec_sql("select distinct code,description from get_profile_menu($1)
where code ~* $2 or description ~* $2 order by code limit 5
",array($g_user->get_profile(),$http->post("acs")));
+$res=$cn->exec_sql("select distinct code,coalesce(description,code)
description from get_profile_menu($1) where code ~* $2 or description ~* $2
order by code limit 5 ",array($g_user->get_profile(),$http->post("acs")));
$nb=Database::num_row($res);
echo "<ul>";
set_language();
- [Noalyss-commit] [noalyss] branch unstable updated (451b9cb7c -> 99fbccdf1), dwm, 2024/08/09
- [Noalyss-commit] [noalyss] 01/09: Bug : fix : ITVA does not change the label, dwm, 2024/08/09
- [Noalyss-commit] [noalyss] 03/09: CFGPRO : detail menu : add button close, dwm, 2024/08/09
- [Noalyss-commit] [noalyss] 02/09: CFGMENU : cosmetic, dwm, 2024/08/09
- [Noalyss-commit] [noalyss] 04/09: cfgplugin : activate plugin with simple click not confirmation needed, dwm, 2024/08/09
- [Noalyss-commit] [noalyss] 06/09: CMCARD : template of card, drag'n drop to order the attributes, dwm, 2024/08/09
- [Noalyss-commit] [noalyss] 07/09: Change menu code , replace CFG by C0 or C1 , new standard, dwm, 2024/08/09
- [Noalyss-commit] [noalyss] 08/09: Fix : gettext for empty string calls the file header,
dwm <=
- [Noalyss-commit] [noalyss] 09/09: Code clean : remove debug info, dwm, 2024/08/09
- [Noalyss-commit] [noalyss] 05/09: HtmlInput::get_node_attribute protect the attribute with htmlentity, dwm, 2024/08/09