summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-30 13:50:55 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-30 13:50:55 -0400
commit5e61931a2d9fa0839e7918c64c1093aa12365927 (patch)
tree652d9d7b29df7a4d895f22b3cf14cb950acbec26 /actions
parent1eb8a82abd51d2c7138a397759c58e4992a430d9 (diff)
check that services are null in yadis check
darcs-hash:20080530175055-84dde-f0e231b4efc30a59d6111b749eb8340116be9f92.gz
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) {