diff --git a/index.php b/index.php
index 7d82bf2211..782974a7e5 100644
--- a/index.php
+++ b/index.php
@@ -288,11 +288,11 @@ Display :: display_header('', $help);
*/
function display_anonymous_right_menu()
{
- global $loginFailed, $_plugins;
+ global $loginFailed, $_plugins, $_user;
$platformLanguage = api_get_setting('platformLanguage');
- if ( !(api_get_user_id()) ) // only display if the user isn't logged in
+ if ( !($_user['user_id']) ) // only display if the user isn't logged in
{
api_display_language_form();
echo '
';
@@ -315,7 +315,9 @@ function display_anonymous_right_menu()
}
echo '';
}
+ echo '