From 5e61931a2d9fa0839e7918c64c1093aa12365927 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 30 May 2008 13:50:55 -0400 Subject: [PATCH] check that services are null in yadis check darcs-hash:20080530175055-84dde-f0e231b4efc30a59d6111b749eb8340116be9f92.gz --- actions/remotesubscribe.php | 4 ++++ 1 file changed, 4 insertions(+) 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) {