Skip to content

Commit

Permalink
Correct api_key and error "DB_ERROR_RECORD_ALREADY_EXISTS"
Browse files Browse the repository at this point in the history
  • Loading branch information
all3kcis committed Jul 21, 2015
1 parent 38d30b5 commit d3f283a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/user/card.php
Expand Up @@ -347,7 +347,7 @@
$object->login = GETPOST("login",'alpha');
$object->gender = GETPOST("gender",'alpha');
$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->office_phone=GETPOST("office_phone",'alpha');
$object->office_fax = GETPOST("office_fax",'alpha');
Expand Down

0 comments on commit d3f283a

Please sign in to comment.