Skip to content

Commit

Permalink
remove php notice when no url in player
Browse files Browse the repository at this point in the history
  • Loading branch information
blat committed Sep 2, 2015
1 parent 332b4cc commit f716cec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/SimplePie/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -2658,7 +2658,9 @@ public function get_enclosures()
// PLAYER
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player']))
{
$player = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player'][0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player'][0]['attribs']['']['url'])) {
$player = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player'][0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
}
}
else
{
Expand Down

0 comments on commit f716cec

Please sign in to comment.