diff --git a/plugins/note/init.php b/plugins/note/init.php
index 65cdf30e4..354591b75 100644
--- a/plugins/note/init.php
+++ b/plugins/note/init.php
@@ -1,5 +1,7 @@
pdo->prepare("SELECT note FROM ttrss_user_entries WHERE
+ ref_id = ? AND owner_uid = ?");
+ $sth->execute([$param, $_SESSION['uid']]);
- $note = db_fetch_result($result, 0, "note");
+ if ($row = $sth->fetch()) {
- print_hidden("id", "$param");
- print_hidden("op", "pluginhandler");
- print_hidden("method", "setNote");
- print_hidden("plugin", "note");
+ $note = $row['note'];
- print "
";
+ print_hidden("id", "$param");
+ print_hidden("op", "pluginhandler");
+ print_hidden("method", "setNote");
+ print_hidden("plugin", "note");
+
+ print "";
+
+ }
print "";
print "