Răsfoiți Sursa

[svn r14572] Display login menu when user is anonymous

Yannick Warnier 17 ani în urmă
părinte
comite
77bb192aed
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      index.php

+ 3 - 3
index.php

@@ -20,7 +20,7 @@
 /**
 *	@package dokeos.main
 * 	@author Patrick Cool <patrick.cool@UGent.be>, Ghent University, Refactoring
-* 	@version $Id: index.php 14194 2008-01-29 16:26:45Z elixir_inter $
+* 	@version $Id: index.php 14572 2008-03-11 21:40:44Z yannoo $
 *   @todo check the different @todos in this page and really do them
 * 	@todo check if the news management works as expected
 */
@@ -370,7 +370,7 @@ function display_anonymous_right_menu()
 
 	$platformLanguage = api_get_setting('platformLanguage');
 
-	if ( !($_user['user_id']) ) // only display if the user isn't logged in
+	if ( !($_user['user_id']) or api_is_anonymous($_user['user_id']) ) // only display if the user isn't logged in
 	{
 		api_display_language_form();
 		echo '<br />';
@@ -701,4 +701,4 @@ function display_anonymous_course_list()
 		echo "<p>", "<a href=\"".api_get_self()."\"><b>&lt;&lt;</b> ", get_lang("BackToHomePage"), "</a>", "</p>\n";
 	}
 }
-?>
+?>