From baf3ecd4cff13c69b2243ef06a56606773de3ed5 Mon Sep 17 00:00:00 2001 From: wn_ Date: Wed, 17 Mar 2021 16:30:17 +0000 Subject: [PATCH] Fix a couple of array index warnings in 'Handler_Public->forgotpass' --- classes/handler/public.php | 4 ++-- 1 file 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 "

".__("Password recovery")."

"; print "
"; - @$method = clean($_POST['method']); + $method = clean($_POST['method'] ?? ''); if ($hash) { $login = clean($_REQUEST["login"]);