diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-06-05 14:47:38 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-06-05 15:12:10 +0200 |
commit | 0a66f48aa1293f93579b7de9bc5d080cf5f3105e (patch) | |
tree | b2e3712776bb21e2bdacc99bbb76f2488c3339e6 /web/lib/acctfuncs.inc.php | |
parent | 7a5bfd83c4baec41bf8aa9015ef46eca5d629716 (diff) | |
download | aur-0a66f48aa1293f93579b7de9bc5d080cf5f3105e.tar.gz aur-0a66f48aa1293f93579b7de9bc5d080cf5f3105e.tar.xz |
Do not return "None" in user functions
Return null instead of the string "None" in username_from_id(),
uid_from_email() and uid_from_username().
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/acctfuncs.inc.php')
-rw-r--r-- | web/lib/acctfuncs.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index 51ffec63..a9965619 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -642,7 +642,7 @@ function send_resetkey($email, $subject, $body) { global $AUR_LOCATION; $uid = uid_from_email($email); - if ($uid != NULL && $uid != 'None') { + if ($uid != null) { /* * We (ab)use new_sid() to get a random 32 characters long * string. |