summaryrefslogtreecommitdiff
path: root/modules/opml_domxml.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/opml_domxml.php')
-rw-r--r--modules/opml_domxml.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/opml_domxml.php b/modules/opml_domxml.php
index 8de842c51..54ec76b90 100644
--- a/modules/opml_domxml.php
+++ b/modules/opml_domxml.php
@@ -66,12 +66,16 @@
if ($parent_node && $parent_node->node_name() == "outline") {
$element_category = $parent_node->get_attribute('title');
+ if (!$element_category) $element_category = $parent_node->get_attribute('text');
+
} else {
$element_category = '';
}
if ($element_category) {
+ $element_category = db_escape_string($element_category);
+
$result = db_query($link, "SELECT id FROM
ttrss_feed_categories WHERE title = '$element_category' AND
owner_uid = '$owner_uid' LIMIT 1");