]> git.wh0rd.org Git - tt-rss.git/commitdiff
opml import: only check feed_url for duplicates
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 4 Mar 2008 06:37:19 +0000 (07:37 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 4 Mar 2008 06:37:19 +0000 (07:37 +0100)
modules/opml_domdoc.php
modules/opml_domxml.php

index 1c0404c342f423b4e78fb85a20673f14bbaad209..fcad76ed2961935d1b66acb42fb3c8cdc82f8851 100644 (file)
@@ -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 "<tr><td><a target='_new' href='$site_url'><b>$feed_title</b></a></b> 
index 5b1e4067dc6405fd98eabb7dd01ea118a6052d03..6a2e537a01b4ecddf4704ca914ff9de9bc702cb6 100644 (file)
@@ -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 "<tr><td><a target='_new' href='$site_url'><b>$feed_title</b></a></b>