From 3f34a0edab6bcd526806354d79d3f214eb6e0058 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 4 Mar 2010 12:36:19 -0500 Subject: [PATCH] Minor - cleaning code --- main/admin/user_add.php | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/main/admin/user_add.php b/main/admin/user_add.php index c199592b5d..4533d249b9 100755 --- a/main/admin/user_add.php +++ b/main/admin/user_add.php @@ -1,18 +1,17 @@ setDefaults($defaults); // Submit button -/* -$form->addElement('style_submit_button', 'submit', get_lang('Add'), 'class="add"'); -$form->addElement('style_submit_button', 'submit_plus', get_lang('Add').'+', 'class="add"'); -*/ $select_level = array (); $html_results_enabled[] = FormValidator :: createElement ('style_submit_button', 'submit_plus', get_lang('Add').'+', 'class="add"'); $html_results_enabled[] = FormValidator :: createElement ('style_submit_button', 'submit', get_lang('Add'), 'class="add"'); @@ -317,9 +312,7 @@ if( $form->validate()) { $picture_element = & $form->getElement('picture'); $picture = $picture_element->getValue(); - $picture_uri = ''; - $lastname = $user['lastname']; $firstname = $user['firstname']; $official_code = $user['official_code']; @@ -387,7 +380,7 @@ if( $form->validate()) { if (isset($user['submit_plus'])) { //we want to add more. Prepare report message and redirect to the same page (to clean the form) $tok = Security::get_token(); - header('Location: user_add.php?message='.urlencode(get_lang('UserAdded')).'&sec_token='.$tok); + header('Location: user_add.php?message='.urlencode(get_lang('UserAdded')).'&sec_token='.$tok); exit (); } else { $tok = Security::get_token(); @@ -413,4 +406,4 @@ if(!empty($message)){ $form->display(); // Footer -Display::display_footer(); +Display::display_footer(); \ No newline at end of file