Commit 33c850f5 authored by Dave Z's avatar Dave Z

Fix PDO query in mail plugin.

parent 8dedacf4
......@@ -86,7 +86,7 @@ class Mail extends Plugin {
print_hidden("method", "sendEmail");
$sth = $this->pdo->prepare("SELECT email, full_name FROM ttrss_users WHERE
id = " . $_SESSION["uid"]);
id = ?";
$sth->execute([$_SESSION['uid']]);
if ($row = $sth->fetch()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment