OPML import fix from Thomas

This commit is contained in:
Andrew Dolgov 2005-09-18 14:15:10 +01:00
parent 49a0dd3d3f
commit d212ce0e93

View file

@ -36,8 +36,15 @@
function startElement($parser, $name, $attrs) {
if ($name == "OUTLINE") {
$title = db_escape_string($attrs['TEXT']);
$url = db_escape_string($attrs['XMLURL']);
if ($name == "OUTLINE") {
$title = $attrs["TEXT"];
$url = $attrs["XMLURL"];
if (!$title) {
$title = $attrs['TITLE'];
}
}
if (!$title || !$url) return;