2010-04-15 Sergio Martin <sergio.martin@artica.es>
* godmode/users/configure_user.php: fixed bug 2987162. Validation of create a user with User ID null git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2570 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d6e9404c4c
commit
72c0eb3d59
|
@ -1,3 +1,8 @@
|
||||||
|
2010-04-15 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* godmode/users/configure_user.php: fixed bug 2987162. Validation
|
||||||
|
of create a user with User ID null
|
||||||
|
|
||||||
2010-04-15 Miguel de Dios <miguel.dedios@artica.es>
|
2010-04-15 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_html.php: added check new attribute "styleTable" to
|
* include/functions_html.php: added check new attribute "styleTable" to
|
||||||
|
|
|
@ -83,7 +83,14 @@ if ($create_user) {
|
||||||
$values['is_admin'] = get_parameter ('is_admin', 0);
|
$values['is_admin'] = get_parameter ('is_admin', 0);
|
||||||
$values['language'] = get_parameter ('language', $config["language"]);
|
$values['language'] = get_parameter ('language', $config["language"]);
|
||||||
|
|
||||||
if ($password_new == '') {
|
if ($id == '') {
|
||||||
|
print_error_message (__('User ID cannot be empty'));
|
||||||
|
$user_info = $values;
|
||||||
|
$password_new = '';
|
||||||
|
$password_confirm = '';
|
||||||
|
$new_user = true;
|
||||||
|
}
|
||||||
|
elseif ($password_new == '') {
|
||||||
print_error_message (__('Passwords cannot be empty'));
|
print_error_message (__('Passwords cannot be empty'));
|
||||||
$user_info = $values;
|
$user_info = $values;
|
||||||
$password_new = '';
|
$password_new = '';
|
||||||
|
|
Loading…
Reference in New Issue