simplepie: check whether enclosures array is defined before parsing

This commit is contained in:
Andrew Dolgov 2008-01-17 06:45:55 +01:00
parent cfa43e025c
commit 3b9e5af4b9
1 changed files with 8 additions and 6 deletions

View File

@ -919,12 +919,14 @@
if (ENABLE_SIMPLEPIE) {
$encs = $item->get_enclosures();
if (is_array($encs)) {
foreach ($encs as $e) {
$e_item = array(
$e->link, $e->type, $e->length);
array_push($enclosures, $e_item);
}
}
} else {
$e_ctr = $item['enclosure#'];