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/html/passreset.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/html/passreset.php')
-rw-r--r-- | web/html/passreset.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/passreset.php b/web/html/passreset.php index 9541021c..9d8e1aee 100644 --- a/web/html/passreset.php +++ b/web/html/passreset.php @@ -25,7 +25,7 @@ if (isset($_GET['resetkey'], $_POST['email'], $_POST['password'], $_POST['confir $error = __('Missing a required field.'); } elseif ($password != $confirm) { $error = __('Password fields do not match.'); - } elseif ($uid == NULL || $uid == 'None') { + } elseif ($uid == null) { $error = __('Invalid e-mail.'); } |