mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
possible fix for possible tag bug
This commit is contained in:
+5
-2
@@ -352,7 +352,7 @@
|
|||||||
if (count($entry_tags) > 0) {
|
if (count($entry_tags) > 0) {
|
||||||
|
|
||||||
$result = db_query($link, "SELECT id FROM ttrss_entries
|
$result = db_query($link, "SELECT id FROM ttrss_entries
|
||||||
WHERE guid = '$entry_guid'");
|
WHERE guid = '$entry_guid' AND owner_uid = " . $_SESSION["uid"]);
|
||||||
|
|
||||||
if (!$result || db_num_rows($result) != 1) {
|
if (!$result || db_num_rows($result) != 1) {
|
||||||
return;
|
return;
|
||||||
@@ -364,7 +364,10 @@
|
|||||||
$tag = db_escape_string(strtolower($tag));
|
$tag = db_escape_string(strtolower($tag));
|
||||||
|
|
||||||
$result = db_query($link, "SELECT id FROM ttrss_tags
|
$result = db_query($link, "SELECT id FROM ttrss_tags
|
||||||
WHERE tag_name = '$tag' AND post_id = '$entry_id' AND owner_uid = ".$_SESSION["uid"]." LIMIT 1");
|
WHERE tag_name = '$tag' AND post_id = '$entry_id' AND
|
||||||
|
owner_uid = ".$_SESSION["uid"]." LIMIT 1");
|
||||||
|
|
||||||
|
// print db_fetch_result($result, 0, "id");
|
||||||
|
|
||||||
if ($result && db_num_rows($result) == 0) {
|
if ($result && db_num_rows($result) == 0) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user