From 2de0e2a476eef0a48758cbb408d49008328af9c5 Mon Sep 17 00:00:00 2001 From: arf20 Date: Tue, 9 Apr 2024 16:54:04 +0200 Subject: Missed global on send_register_notification --- register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/register.php b/register.php index 025eb70..29e3cd1 100755 --- a/register.php +++ b/register.php @@ -15,7 +15,7 @@ function send_verification_email($rcpt, $code) { } function send_register_notification($username) { - global $link; + global $link, $mailer; // send admin mail $sql = "SELECT email FROM users WHERE type = 'admin'"; $stmt = mysqli_prepare($link, $sql); -- cgit v1.2.3