]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check that services are null in yadis check
authorEvan Prodromou <evan@prodromou.name>
Fri, 30 May 2008 17:50:55 +0000 (13:50 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 30 May 2008 17:50:55 +0000 (13:50 -0400)
darcs-hash:20080530175055-84dde-f0e231b4efc30a59d6111b749eb8340116be9f92.gz

actions/remotesubscribe.php

index 29e62c3e97360e4145441571b03de89a04b9875d..1a78bd1503014e43e40dd358cc916b4dee211b3e 100644 (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) {