Merge pull request #3303 from All-3kcis/develop-patch-5
Correct api_key and error "DB_ERROR_RECORD_ALREADY_EXISTS"
This commit is contained in:
commit
9ba9db9abe
@ -347,7 +347,7 @@ if ($action == 'update' && ! $_POST["cancel"])
|
|||||||
$object->login = GETPOST("login",'alpha');
|
$object->login = GETPOST("login",'alpha');
|
||||||
$object->gender = GETPOST("gender",'alpha');
|
$object->gender = GETPOST("gender",'alpha');
|
||||||
$object->pass = GETPOST("password");
|
$object->pass = GETPOST("password");
|
||||||
$object->api_key = GETPOST("api_key");
|
$object->api_key = (GETPOST("api_key", 'alpha'))?GETPOST("api_key", 'alpha'):$object->api_key;
|
||||||
$object->admin = empty($user->admin)?0:GETPOST("admin"); // A user can only be set admin by an admin
|
$object->admin = empty($user->admin)?0:GETPOST("admin"); // A user can only be set admin by an admin
|
||||||
$object->office_phone=GETPOST("office_phone",'alpha');
|
$object->office_phone=GETPOST("office_phone",'alpha');
|
||||||
$object->office_fax = GETPOST("office_fax",'alpha');
|
$object->office_fax = GETPOST("office_fax",'alpha');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user