summaryrefslogtreecommitdiff
path: root/opml.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-02 16:41:24 +0100
committerAndrew Dolgov <[email protected]>2005-09-02 16:41:24 +0100
commitf179a35d12b50f5c1667726236c2d8e015861ef6 (patch)
tree6a605b640f88598475adbf0fbc7ca2f2c269236f /opml.php
parent16a7aacd5683b55fb0fda8177d3c0da54f551b38 (diff)
basic sanity checking in OPML import
Diffstat (limited to 'opml.php')
-rw-r--r--opml.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/opml.php b/opml.php
index c17821130..f3dd34ef4 100644
--- a/opml.php
+++ b/opml.php
@@ -36,6 +36,8 @@
$title = pg_escape_string($attrs['TEXT']);
$url = pg_escape_string($attrs['XMLURL']);
+ if (!$title || !$url) return;
+
print "Feed <b>$title</b> ($url)... ";
$result = pg_query("SELECT id FROM ttrss_feeds WHERE