Esthetic : message is nothing found in menu
This commit is contained in:
parent
875102f2ae
commit
ba4b75f59a
1 changed files with 4 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue