[FIX] Account Update with same coin address

This commit is contained in:
Sebastian Grewe 2014-02-05 15:29:52 +01:00
parent 5e73e7a48c
commit bfbb8c83b7

View File

@ -447,7 +447,7 @@ class User extends Base {
return false;
}
if (!empty($address)) {
if ($this->existsCoinAddress($address)) {
if ($address != $this->getCoinAddress($userID) && $this->existsCoinAddress($address)) {
$this->setErrorMessage('Address is already in use');
return false;
}