OPML import fix from Thomas
This commit is contained in:
parent
49a0dd3d3f
commit
d212ce0e93
11
opml.php
11
opml.php
|
@ -36,8 +36,15 @@
|
||||||
function startElement($parser, $name, $attrs) {
|
function startElement($parser, $name, $attrs) {
|
||||||
|
|
||||||
if ($name == "OUTLINE") {
|
if ($name == "OUTLINE") {
|
||||||
$title = db_escape_string($attrs['TEXT']);
|
if ($name == "OUTLINE") {
|
||||||
$url = db_escape_string($attrs['XMLURL']);
|
|
||||||
|
$title = $attrs["TEXT"];
|
||||||
|
$url = $attrs["XMLURL"];
|
||||||
|
|
||||||
|
if (!$title) {
|
||||||
|
$title = $attrs['TITLE'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!$title || !$url) return;
|
if (!$title || !$url) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue