]> git.wh0rd.org Git - tt-rss.git/commitdiff
allow updates of ttrss_feeds.site_url/icon_url
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 22 Nov 2005 10:01:09 +0000 (11:01 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 22 Nov 2005 10:01:09 +0000 (11:01 +0100)
functions.php

index b9f33f2f6a6aaa2f4e5cb53acdf8925d9e025e04..2085d6067ad3e164239acc43e8db3f5a9c7a43ba 100644 (file)
                                        title = '$feed_title' WHERE id = '$feed'");
                        }
 
-                       if (!$orig_site_url && $rss->channel["link"]) {
+                       $site_url = $rss->channel["link"];
+
+                       if ($site_url && $orig_site_url != db_escape_string($site_url)) {
                                $site_url = db_escape_string($rss->channel["link"]);
                                db_query($link, "UPDATE ttrss_feeds SET 
                                        site_url = '$site_url' WHERE id = '$feed'");
 
                        $icon_url = $rss->image["url"];
 
-                       if ($icon_url && !$orig_icon_url) {
+                       if ($icon_url && !$orig_icon_url != db_escape_string($icon_url)) {
                                $icon_url = db_escape_string($icon_url);
                                db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'");
                        }