From: Evan Prodromou Date: Fri, 30 May 2008 18:11:03 +0000 (-0400) Subject: check to see if XRDS discovery failed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d3dd804ddf55e7aba9533a180a5d9c98392b03df;p=quix0rs-gnu-social.git check to see if XRDS discovery failed darcs-hash:20080530181103-84dde-55eb7fce80ae6a11639ec9748c0d02f7f72cbc4d.gz --- diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index ca69b174e4..8f9dd3cb9f 100644 --- a/actions/remotesubscribe.php +++ b/actions/remotesubscribe.php @@ -78,7 +78,7 @@ class RemotesubscribeAction extends Action { $fetcher = Auth_Yadis_Yadis::getHTTPFetcher(); $yadis = Auth_Yadis_Yadis::discover($profile, $fetcher); - if (!$yadis) { + if (!$yadis || $yadis->fail) { $this->show_form(_t('Not a valid profile URL (no YADIS document).')); return; }