]> git.wh0rd.org Git - tt-rss.git/commitdiff
one more fix for Magpie link_ weirdness
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 27 Nov 2005 19:35:56 +0000 (20:35 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 27 Nov 2005 19:35:56 +0000 (20:35 +0100)
functions.php

index d1c43eeb0597a8cf636446390c06620c8adedaba..f0077efaebbe548ca42be610637facf0b7f67d0d 100644 (file)
                        }
 
                        $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'");
                        }