summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/remotesubscribe.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php
index 29e62c3e9..1a78bd150 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) {