Esthetic : message is nothing found in menu

This commit is contained in:
Dany De Bontridder 2015-09-04 10:50:58 +02:00
parent 875102f2ae
commit ba4b75f59a

View file

@ -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');
}
?>