diff options
author | wn_ <[email protected]> | 2021-03-17 16:30:17 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2021-03-17 16:30:17 +0000 |
commit | baf3ecd4cff13c69b2243ef06a56606773de3ed5 (patch) | |
tree | d8b663b72b4f10885809c9a4df3d88b69ff52406 /classes | |
parent | 541a07250ce535ddac4402ddccb60e7e90513c2b (diff) |
Fix a couple of array index warnings in 'Handler_Public->forgotpass'
Diffstat (limited to 'classes')
-rwxr-xr-x | classes/handler/public.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index fc3a6818c..f9d118999 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -408,7 +408,7 @@ class Handler_Public extends Handler { startup_gettext(); session_start(); - @$hash = clean($_REQUEST["hash"]); + $hash = clean($_REQUEST["hash"] ?? ''); header('Content-Type: text/html; charset=utf-8'); ?> @@ -441,7 +441,7 @@ class Handler_Public extends Handler { print "<h1>".__("Password recovery")."</h1>"; print "<div class='content'>"; - @$method = clean($_POST['method']); + $method = clean($_POST['method'] ?? ''); if ($hash) { $login = clean($_REQUEST["login"]); |