diff options
author | friendica <info@friendica.com> | 2013-01-27 01:19:24 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-27 01:19:24 -0800 |
commit | 28ab6d5bf508120956d575e260ed2fa2b8417e59 (patch) | |
tree | 2bb7a313ecfa5d900cd6a53dfe6fe926c4b7c8e4 /include/nav.php | |
parent | 22bde9b2b797f17841f0ee12df1d12ea9616216f (diff) | |
download | volse-hubzilla-28ab6d5bf508120956d575e260ed2fa2b8417e59.tar.gz volse-hubzilla-28ab6d5bf508120956d575e260ed2fa2b8417e59.tar.bz2 volse-hubzilla-28ab6d5bf508120956d575e260ed2fa2b8417e59.zip |
lostpass fixes and login/logout flow if authenticated but no default channel exists
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/nav.php b/include/nav.php index 3a565af55..73421beab 100644 --- a/include/nav.php +++ b/include/nav.php @@ -80,7 +80,12 @@ EOT; } else { - $nav['login'] = Array('login',t('Login'), ($a->module == 'login'?'selected':''), t('Sign in')); + if(! get_account_id()) + $nav['login'] = Array('login',t('Login'), ($a->module == 'login'?'selected':''), t('Sign in')); + else + $nav['alogout'] = Array('logout',t('Logout'), "", t('End this session')); + + } if($observer) { |