check xrds object

darcs-hash:20080530185343-84dde-90c12188656a29b0f34d8ffa27927f0f664fbd74.gz
This commit is contained in:
Evan Prodromou 2008-05-30 14:53:43 -04:00
parent 0cb0a5ce1d
commit a0928778ba
1 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,13 @@ class RemotesubscribeAction extends Action {
return;
}
if (!$yadis->xrds) {
$this->show_form(_t('Not a valid profile URL (no XRDS defined).'));
return;
}
common_debug('remotesubscribe.php: XRDS is "'.print_r($yadis->xrds,TRUE).'"');
$omb = $this->getOmb($yadis);
if (!$omb) {