fetch the oid before showing it
darcs-hash:20080619153719-5ed1f-da58c447643d24dbfd9d0076c74d8ce4f57c5be3.gz
This commit is contained in:
parent
fa90195c4d
commit
c030c8dbd2
|
@ -81,10 +81,13 @@ class OpenidsettingsAction extends SettingsAction {
|
||||||
common_element('p', NULL,
|
common_element('p', NULL,
|
||||||
_t('Removing your only OpenID would make it impossible to log in! ' .
|
_t('Removing your only OpenID would make it impossible to log in! ' .
|
||||||
'If you need to remove it, add another OpenID first.'));
|
'If you need to remove it, add another OpenID first.'));
|
||||||
common_element_start('p');
|
|
||||||
common_element('a', array('href' => $oid->canonical),
|
if ($oid->fetch()) {
|
||||||
$oid->display);
|
common_element_start('p');
|
||||||
common_element_end('p');
|
common_element('a', array('href' => $oid->canonical),
|
||||||
|
$oid->display);
|
||||||
|
common_element_end('p');
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user