[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 02/03: Task #1151 - Amélioration configurati
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 02/03: Task #1151 - Amélioration configuration des menus find default module |
Date: |
Thu, 20 Aug 2015 08:11:40 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 1a753390cb91afa7ff459a1cae3cddce5ed8f073
Author: Dany De Bontridder <address@hidden>
Date: Thu Aug 20 10:01:33 2015 +0200
Task #1151 - Amélioration configuration des menus
find default module
---
html/do.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/html/do.php b/html/do.php
index e5ebead..90a5a04 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);
}