Skip to content

Commit

Permalink
Merge pull request #1567 from OCSInventory-NG/fix_users_warning
Browse files Browse the repository at this point in the history
fix(users) : remove dead code and fix undefined array key warning
  • Loading branch information
charleneauger authored Dec 18, 2023
2 parents 3b49e43 + 4b28815 commit cca1d85
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions plugins/main_sections/ms_users/ms_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,12 @@
require_once('require/function_search.php');
require_once('require/function_users.php');

// Définition des onglets
$profiles = get_profile_labels();
$data_on = $profiles;
$data_on[4] = $l->g(244);

if ($_SESSION['OCS']['profile']->getConfigValue('MANAGE_PROFIL') == 'YES') {
$data_on[5] = $l->g(1146);
}

$form_name = "admins";
$tab_options = $protectedPost;
$tab_options['form_name'] = $form_name;
echo open_form($form_name, '', '', 'form-horizontal');
$table_name = "TAB_ACCESSLVL" . $protectedPost['onglet'];

if (!isset($protectedPost['onglet']) || $protectedPost['onglet'] == "") {
$protectedPost['onglet'] = current($data_on);
}
$table_name = "TAB_ACCESSLVL";

//suppression d'une liste de users
if (is_defined($protectedPost['del_check'])) {
Expand Down

0 comments on commit cca1d85

Please sign in to comment.