Fix invalid DB query (double backtick)

This commit is contained in:
Martins Eglitis committed 2018-01-22 15:10:46 +02:00
1 parent 938e7dcb7d
commit 97f0fa2c3d
1 file changed
+1 -1
+1 -1
View File
@@ -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']);