From 97f0fa2c3db741639219955ef0b2e092b971b2f6 Mon Sep 17 00:00:00 2001 From: Martins Eglitis Date: Mon, 22 Jan 2018 15:10:46 +0200 Subject: [PATCH] Fix invalid DB query (double backtick) --- users/password-recover.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/password-recover.php b/users/password-recover.php index 54695f1c..fdba2935 100644 --- a/users/password-recover.php +++ b/users/password-recover.php @@ -63,7 +63,7 @@ if ($_SERVER['REQUEST_METHOD'] === "POST") { if ($token !== false) { $table = table_by_key($context === 'users' ? 'mailbox' : 'admin'); - $result = db_query("SELECT * FROM `$table` WHERE username='$tUsername'"); + $result = db_query("SELECT * FROM $table WHERE username='$tUsername'"); $row = db_array($result['result']); $email_other = trim($row['email_other']);