2009-11-03 Miguel de Dios <miguel.dedios@artica.es>

* godmode/users/configure_user.php: fix to set the admin user when
	you create new user.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2073 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-11-03 17:29:52 +00:00
parent 0b6cbd1cb4
commit 1e7a64e9d3
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2009-11-03 Miguel de Dios <miguel.dedios@artica.es>
* godmode/users/configure_user.php: fix to set the admin user when
you create new user.
2009-11-03 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/make_deb_package.sh: move the script to make the deb package into
the DEBIAN and change some things into the sourcecode for the directory

View File

@ -68,7 +68,7 @@ if ($create_user) {
$values['email'] = (string) get_parameter ('email');
$values['phone'] = (string) get_parameter ('phone');
$values['comments'] = (string) get_parameter ('comments');
$is_admin = (bool) get_parameter ('is_admin', 0);
$values['is_admin'] = $is_admin = (bool) get_parameter ('is_admin', 0);
if ($password_new == '') {
print_error_message (__('Passwords cannot be empty'));
@ -76,13 +76,15 @@ if ($create_user) {
$password_new = '';
$password_confirm = '';
$new_user = true;
} elseif ($password_new != $password_confirm) {
}
elseif ($password_new != $password_confirm) {
print_error_message (__('Passwords didn\'t match'));
$user_info = $values;
$password_new = '';
$password_confirm = '';
$new_user = true;
} else {
}
else {
$result = create_user ($id, $password_new, $values);
print_result_message ($result,
__('Successfully created'),