Fix PDO query in mail plugin.

This commit is contained in:
Dave Z 2018-01-01 13:33:58 -05:00
parent 8dedacf497
commit 33c850f5ab
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {