From 1a753390cb91afa7ff459a1cae3cddce5ed8f073 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 20 Aug 2015 10:01:33 +0200 Subject: [PATCH] =?UTF-8?q?Task=20#1151=20-=20Am=C3=A9lioration=20configur?= =?UTF-8?q?ation=20des=20menus=20find=20default=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/do.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/do.php b/html/do.php index e5ebeade4..90a5a04fa 100644 --- a/html/do.php +++ b/html/do.php @@ -200,8 +200,8 @@ if (isset($_REQUEST['ac'])) else { $default = find_default_module(); - $user_profile=$cn->get_value('select p_id from profile_user where lower(user_name)=lower($1)', - array($g_user->login)); + $user_profile=$g_user->get_profile(); + if ( $user_profile == "" ) throw new Exception (_('Aucun profil utilisateur')); @@ -216,7 +216,7 @@ else $_REQUEST['ac']=$default; show_module($menu_id); $all[0] = $default; - show_menu($all, 0); + show_menu($menu_id, 0); }