#329227 by chx: Fix notices in OPML tests.

merge-requests/26/head
Angie Byron 2008-11-08 07:12:18 +00:00
parent b0e2635675
commit 3cbbd0577e
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ function _aggregator_parse_opml($opml) {
foreach ($values as $entry) {
if ($entry['tag'] == 'OUTLINE' && isset($entry['attributes'])) {
$item = $entry['attributes'];
if (!empty($item['XMLURL'])) {
if (!empty($item['XMLURL']) && !empty($item['TEXT'])) {
$feeds[] = array('title' => $item['TEXT'], 'url' => $item['XMLURL']);
}
}