diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 5367b8799ec0b1376750ba7fbbe8c567f266e52a..7f86c7309c30291423c62e9e661a5fab57bcf389 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 4d90b309d0cc3eb3a4b23ddcfe8838a032aa1e60..c1cc43821a7c8f3d3d1a75fc79e7bd2fab608445 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;