Internal: Remove unused code

pull/3683/head
Julio Montoya 5 years ago
parent f2253ecea8
commit 2ca6c97368
  1. 13
      main/admin/user_add.php

@ -245,19 +245,6 @@ $form->addElement(
//drh list (display only if student)
$display = (isset($_POST['status']) && $_POST['status'] == STUDENT) || !isset($_POST['status']) ? 'block' : 'none';
//@todo remove the drh list here. This code is unused
$form->addElement('html', '<div id="drh_list" style="display:'.$display.';">');
if (isset($drh_list) && is_array($drh_list)) {
foreach ($drh_list as $drh) {
$drh_select->addOption(
api_get_person_name($drh['firstname'], $drh['lastname']),
$drh['user_id']
);
}
}
$form->addElement('html', '</div>');
if (api_is_platform_admin()) {
// Platform admin
$group = [];

Loading…
Cancel
Save