On error, return 0 instead of -1 in account_get_email_verification_expiration()
This commit is contained in:
parent
b2f0cb79e3
commit
8361ad8576
1 changed files with 1 additions and 1 deletions
|
@ -2698,7 +2698,7 @@ namespace pvpgn
|
|||
if (account == nullptr)
|
||||
{
|
||||
eventlog(eventlog_level_error, __FUNCTION__, "got NULL account");
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return account_get_numattr(account, "email_verification\\expiration");
|
||||
|
|
Loading…
Add table
Reference in a new issue