Minor - format code, fixing PHP warnings.

1.9.x
Julio Montoya 11 years ago
parent c196f2a13e
commit 4602eddb21
  1. 13
      main/auth/profile.php

@ -8,9 +8,6 @@
*
* @package chamilo.auth
*/
/**
* Code
*/
// Language files that should be included.
$language_file = array('registration', 'messages', 'userInfo');
@ -25,7 +22,6 @@ if (api_get_setting('allow_social_tool') == 'true') {
$this_section = SECTION_MYPROFILE;
}
$htmlHeadXtra[] = api_get_password_checker_js('#username', '#password1');
$_SESSION['this_section'] = $this_section;
@ -477,8 +473,10 @@ if ($form->validate()) {
$user_data['picture_uri'] = '';
}
//Remove production
if (is_array($user_data['remove_production'])) {
// Remove production.
if (isset($user_data['remove_production']) &&
is_array($user_data['remove_production'])
) {
foreach (array_keys($user_data['remove_production']) as $production) {
UserManager::remove_user_production(api_get_user_id(), urldecode($production));
}
@ -658,8 +656,6 @@ if ($form->validate()) {
exit;
}
/* MAIN DISPLAY SECTION */
// the header
Display::display_header(get_lang('ModifyProfile'));
@ -700,7 +696,6 @@ if (!empty($file_deleted)) {
Display :: display_confirmation_message($message, false);
}
if (!empty($msg_fail_changue_email)){
$errormail=get_lang('ToChangeYourEmailMustTypeYourPassword');
Display :: display_error_message($errormail, false);

Loading…
Cancel
Save