diff options
| author | wjames5 <will@tekimaki.com> | 2008-06-03 17:33:42 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-06-03 17:33:42 +0000 |
| commit | 9b095fc5548884e231b7315ad21403cdc7cf5cc5 (patch) | |
| tree | d895ada7b54f1b6c444206852cb1e99f5946d9f4 | |
| parent | c06abbd96146b0d31d006c4f7dabf3bf40971856 (diff) | |
| download | rss-9b095fc5548884e231b7315ad21403cdc7cf5cc5.tar.gz rss-9b095fc5548884e231b7315ad21403cdc7cf5cc5.tar.bz2 rss-9b095fc5548884e231b7315ad21403cdc7cf5cc5.zip | |
make sure enclosure param is set before checking it, php is annoying
| -rw-r--r-- | feedcreator.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/feedcreator.class.php b/feedcreator.class.php index 7560fbc..05e930f 100644 --- a/feedcreator.class.php +++ b/feedcreator.class.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_rss/feedcreator.class.php,v 1.8 2008/06/03 17:00:24 wjames5 Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_rss/feedcreator.class.php,v 1.9 2008/06/03 17:33:42 wjames5 Exp $ * @package rss */ @@ -971,7 +971,7 @@ class RSSCreator091 extends FeedCreator { if ($this->items[$i]->guid!="") { $feed.= " <guid>".htmlspecialchars($this->items[$i]->guid)."</guid>\n"; } - if ( $this->items[$i]->enclosure!="" && is_array( $this->items[$i]->enclosure ) ){ + if ( isset( $this->items[$i]->enclosure ) && is_array( $this->items[$i]->enclosure ) ){ $enc = $this->items[$i]->enclosure; $feed.= " <enclosure url='".$enc['url']."' length='".$enc['length']."' type='".$enc['type']."' />"; } |
