diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-06-19 11:37:19 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-06-19 11:37:19 -0400 |
commit | c030c8dbd204983e18f201dba9e7d3dfbb0af003 (patch) | |
tree | 79782d2a8ff3494309598c5b403f7a59e7999c14 /actions | |
parent | fa90195c4de9da656d1f463b1a06c379391bd6c7 (diff) |
fetch the oid before showing it
darcs-hash:20080619153719-5ed1f-da58c447643d24dbfd9d0076c74d8ce4f57c5be3.gz
Diffstat (limited to 'actions')
-rw-r--r-- | actions/openidsettings.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/actions/openidsettings.php b/actions/openidsettings.php index 1488c79b8..0a1fd4852 100644 --- a/actions/openidsettings.php +++ b/actions/openidsettings.php @@ -81,10 +81,13 @@ class OpenidsettingsAction extends SettingsAction { common_element('p', NULL, _t('Removing your only OpenID would make it impossible to log in! ' . 'If you need to remove it, add another OpenID first.')); - common_element_start('p'); - common_element('a', array('href' => $oid->canonical), - $oid->display); - common_element_end('p'); + + if ($oid->fetch()) { + common_element_start('p'); + common_element('a', array('href' => $oid->canonical), + $oid->display); + common_element_end('p'); + } } else { |