From: Evan Prodromou Date: Fri, 30 May 2008 17:50:55 +0000 (-0400) Subject: check that services are null in yadis check X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5e61931a2d9fa0839e7918c64c1093aa12365927;p=quix0rs-gnu-social.git check that services are null in yadis check darcs-hash:20080530175055-84dde-f0e231b4efc30a59d6111b749eb8340116be9f92.gz --- diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index 29e62c3e97..1a78bd1503 100644 --- a/actions/remotesubscribe.php +++ b/actions/remotesubscribe.php @@ -114,6 +114,10 @@ class RemotesubscribeAction extends Action { OAUTH_ENDPOINT_ACCESS); $omb = array(); $services = $yadis->services(); # ordered by priority + if (!$services) { + return NULL; + } + foreach ($services as $service) { $types = $service->matchTypes($endpoints); foreach ($types as $type) {