Support multiple hub links for WebSub
[phinde.git] / src / phinde / Subscriptions.php
index 403f5d420e9bc3d7954316b2e93d043c398055dd..4650a0ce5342c36801763a10f6acf323b9498c9a 100644 (file)
@@ -262,7 +262,7 @@ class Subscriptions
         $urls = $hue->getUrls($url);
         //we violate the spec by not requiring a self URL
         $topicUrl = isset($urls['self']) ? $urls['self'] : $url;
-        $hubUrl   = isset($urls['hub'])  ? $urls['hub'] : null;
+        $hubUrl   = isset($urls['hub'][0]) ? $urls['hub'][0] : null;
 
         return array($topicUrl, $hubUrl);
     }