From f0053c6a47637d026dd5c4cc63d37c1c87d934df Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 4 Mar 2008 07:37:19 +0100 Subject: [PATCH] opml import: only check feed_url for duplicates --- modules/opml_domdoc.php | 2 +- modules/opml_domxml.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/opml_domdoc.php b/modules/opml_domdoc.php index 1c0404c3..fcad76ed 100644 --- a/modules/opml_domdoc.php +++ b/modules/opml_domdoc.php @@ -93,7 +93,7 @@ } $result = db_query($link, "SELECT id FROM ttrss_feeds WHERE - (title = '$feed_title' OR feed_url = '$feed_url') + feed_url = '$feed_url' AND owner_uid = '$owner_uid'"); print "$feed_title diff --git a/modules/opml_domxml.php b/modules/opml_domxml.php index 5b1e4067..6a2e537a 100644 --- a/modules/opml_domxml.php +++ b/modules/opml_domxml.php @@ -96,7 +96,7 @@ } $result = db_query($link, "SELECT id FROM ttrss_feeds WHERE - (title = '$feed_title' OR feed_url = '$feed_url') + feed_url = '$feed_url AND owner_uid = '$owner_uid'"); print "$feed_title -- 2.39.5