From f716cece6ffd32d442edba9c9e748adfebc0f399 Mon Sep 17 00:00:00 2001 From: blat Date: Wed, 2 Sep 2015 16:04:58 +0200 Subject: [PATCH] remove php notice when no url in player --- library/SimplePie/Item.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/SimplePie/Item.php b/library/SimplePie/Item.php index 58aac174a..4bfb706fb 100644 --- a/library/SimplePie/Item.php +++ b/library/SimplePie/Item.php @@ -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 {