diff options
author | James Walker <walkah@walkah.net> | 2010-02-26 04:07:58 -0500 |
---|---|---|
committer | James Walker <walkah@walkah.net> | 2010-02-26 04:07:58 -0500 |
commit | ab8bb4d79e5f267323440b8cee01458b393ce2d1 (patch) | |
tree | bc7bd1f0fe849d1b3a932311dd40b6b538ea40ae /plugins/OStatus/lib/discovery.php | |
parent | d1256b547f5f4f02ddc51a5fe2146dbde52aac53 (diff) |
more cleanup
Diffstat (limited to 'plugins/OStatus/lib/discovery.php')
-rw-r--r-- | plugins/OStatus/lib/discovery.php | 4 |
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; |