noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 35/65: Esthetic : message is nothing found in


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 35/65: Esthetic : message is nothing found in menu
Date: Wed, 09 Sep 2015 08:27:20 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit ba4b75f59a6e61e5f85d1a86cd2da9e41d5c8831
Author: Dany De Bontridder <address@hidden>
Date:   Fri Sep 4 10:50:58 2015 +0200

    Esthetic : message is nothing found in menu
---
 html/direct.php |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/html/direct.php b/html/direct.php
index 242e3d9..1c6ef20 100644
--- a/html/direct.php
+++ b/html/direct.php
@@ -27,7 +27,7 @@ global $g_user;
 $g_user=new User($cn);
 $g_user->Check();
 $g_user->check_dossier($_GET['gDossier']);
-$res=$cn->exec_sql("select distinct code,description from get_profile_menu($1) 
where code ~* $2 or description ~* $3 limit 
8",array($g_user->login,$_POST['acs'],$_POST['acs']));
+$res=$cn->exec_sql("select code,description from get_profile_menu($1) where 
code ~* $2 or description ~* $3 limit 
8",array($g_user->get_profile(),$_POST['acs'],$_POST['acs']));
 $nb=Database::num_row($res);
        echo "<ul>";
 for ($i = 0;$i< $nb;$i++)
@@ -38,4 +38,7 @@ for ($i = 0;$i< $nb;$i++)
        echo '<span class="informal"> '.$row['description'].'</span></li>';
 }
        echo "</ul>";
+if ( $nb == 0 ) {
+    echo _('Aucune correspondance');
+}        
 ?>



reply via email to

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