check that services are null in yadis check

darcs-hash:20080530175055-84dde-f0e231b4efc30a59d6111b749eb8340116be9f92.gz
This commit is contained in:
Evan Prodromou 2008-05-30 13:50:55 -04:00
parent 1eb8a82abd
commit 5e61931a2d

View File

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