Skip to content

Commit

Permalink
fix(users) : remove dead code and fix undefined array key warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Lea9250 committed Oct 10, 2023
1 parent 623e6ec commit 4b28815
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 4b28815

Please sign in to comment.