noalyss-commit
[Top][All Lists]
Advanced

[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();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]