From: Andrew Dolgov Date: Sun, 27 Nov 2005 19:35:56 +0000 (+0100) Subject: one more fix for Magpie link_ weirdness X-Git-Tag: schema_feature_freeze_for_1.1~53 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=832b7bfc585513634d17ca66ee4a3c54785d6c7c;p=tt-rss.git one more fix for Magpie link_ weirdness --- diff --git a/functions.php b/functions.php index d1c43eeb..f0077efa 100644 --- a/functions.php +++ b/functions.php @@ -203,9 +203,10 @@ } $site_url = $rss->channel["link"]; + // weird, weird Magpie + if (!$site_url) $site_url = db_escape_string($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'"); }