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) {