From de814baf80020eaef802a2b81b5819e4ce306bcd Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Sun, 21 Mar 2010 16:06:09 +0000 Subject: [PATCH] Suppress namespace warnings when parsing feeds for subscription in PuSHSubscriber.inc. --- CHANGELOG.txt | 2 ++ libraries/PuSHSubscriber.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 5367b879..7f86c730 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,6 +4,8 @@ Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx ---------------------------------- +- alex_b: Suppress namespace warnings when parsing feeds for subscription in + PuSHSubscriber.inc - #724184 ekes: catch failures when parsing for PubSubHubbub hub and self. - #706984 lyricnz: Add FeedsSimplePie::parseExtensions() to allow parsing to be customized. diff --git a/libraries/PuSHSubscriber.inc b/libraries/PuSHSubscriber.inc index 4d90b309..c1cc4382 100644 --- a/libraries/PuSHSubscriber.inc +++ b/libraries/PuSHSubscriber.inc @@ -76,7 +76,7 @@ class PuSHSubscriber { $data = curl_exec($request); if (curl_getinfo($request, CURLINFO_HTTP_CODE) == 200) { try { - $xml = new SimpleXMLElement($data); + $xml = @ new SimpleXMLElement($data); $xml->registerXPathNamespace('atom', 'http://www.w3.org/2005/Atom'); if (empty($hub) && $hub = @current($xml->xpath("//atom:link[attribute::rel='hub']"))) { $hub = (string) $hub->attributes()->href; -- GitLab