From 268fccdb30bb4905fc0236b00d38cd68847b7206 Mon Sep 17 00:00:00 2001 From: ltning Date: Wed, 28 Jan 2026 20:06:59 +0000 Subject: [PATCH] Fix SQL in send_reg_confirmation_email_from_register --- include/account.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/account.php b/include/account.php index fe52c338c..a68e546e8 100644 --- a/include/account.php +++ b/include/account.php @@ -326,9 +326,7 @@ function verify_email_address(string $email): bool { */ function send_reg_confirmation_email_from_register(int $reg_id): bool { - $register = q("SELECT reg_email, reg_lang FROM register WHERE reg_id = '%s' ", - intval($reg_id) - ); + $register = q("SELECT reg_email, reg_lang FROM register WHERE reg_id = %d", $reg_id); if (empty($register)) { logger('send_reg_confirmation_email_from_register: could not find email address for for reg_id ' . $reg_id);