simplepie: check whether enclosures array is defined before parsing

master
Andrew Dolgov 17 years ago
parent cfa43e025c
commit 3b9e5af4b9

@ -919,11 +919,13 @@
if (ENABLE_SIMPLEPIE) {
$encs = $item->get_enclosures();
foreach ($encs as $e) {
$e_item = array(
$e->link, $e->type, $e->length);
if (is_array($encs)) {
foreach ($encs as $e) {
$e_item = array(
$e->link, $e->type, $e->length);
array_push($enclosures, $e_item);
array_push($enclosures, $e_item);
}
}
} else {

Loading…
Cancel
Save