From 215b1332fc4a4dc7521d18c6c85182fffb45960e Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Wed, 23 Apr 2025 14:15:56 +0300 Subject: [PATCH] Fix to check if domain hash isn't empty --- forgot.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forgot.cgi b/forgot.cgi index acf435340..0d37a9d52 100755 --- a/forgot.cgi +++ b/forgot.cgi @@ -46,7 +46,7 @@ if (defined($in{'newpass'})) { "parent", ""); $d->{'disabled'} && &error($text{'forgot_edisabled'}); } - if ($d) { + if (keys %{$d}) { # Update in Virtualmin print &text('forgot_vdoing', &virtual_server::show_domain_name($d)),"
\n";