diff --git a/include/ajax/ajax_get_profile.php b/include/ajax/ajax_get_profile.php index 273b54cc8..586a92d66 100644 --- a/include/ajax/ajax_get_profile.php +++ b/include/ajax/ajax_get_profile.php @@ -58,7 +58,9 @@ $a_tab[$call_tab]='tabs_selected';
  •   +
    +
  • + cn->exec_sql(" diff --git a/include/profile.inc.php b/include/profile.inc.php index a1c52f75b..18f6f2c7a 100644 --- a/include/profile.inc.php +++ b/include/profile.inc.php @@ -331,7 +331,7 @@ if (isset($_POST['add_menu'])||isset($_POST['add_impress'])) * Do not insert twice the same menu */ $duplicate = $cn->get_value(" select count(*) from profile_menu where " - . " pm_id_dep = $1 and me_code = $2",array($p_dep,$me_code)); + . " pm_id_dep = $1 and me_code = $2",array($pm_id_dep,$me_code)); if ( $duplicate > 0 ) { throw new Exception(_('Doublon')); }