summaryrefslogtreecommitdiff
path: root/plugins/OStatus/lib/discovery.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/OStatus/lib/discovery.php')
-rw-r--r--plugins/OStatus/lib/discovery.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/OStatus/lib/discovery.php b/plugins/OStatus/lib/discovery.php
index 1ab6e51bd..388df0a28 100644
--- a/plugins/OStatus/lib/discovery.php
+++ b/plugins/OStatus/lib/discovery.php
@@ -111,6 +111,10 @@ class Discovery
}
public static function getService($links, $service) {
+ if (!is_array($links)) {
+ return false;
+ }
+
foreach ($links as $link) {
if ($link['rel'] == $service) {
return $link;