From 147f7691fc61a21cecb929916e3b485911ed5b9f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Nov 2005 11:01:09 +0100 Subject: [PATCH] allow updates of ttrss_feeds.site_url/icon_url --- functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index b9f33f2f..2085d606 100644 --- a/functions.php +++ b/functions.php @@ -196,7 +196,9 @@ 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'"); @@ -206,7 +208,7 @@ $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'"); } -- 2.39.5