Browse Source

login redirection lib : $param must be a global variable

Noel Dieschburg 13 years ago
parent
commit
5a3f3045b2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      main/inc/lib/loginredirection.lib.php

+ 2 - 0
main/inc/lib/loginredirection.lib.php

@@ -7,6 +7,8 @@ Class LoginRedirection {
 
 	//checks user status and redirect him through custom page if setting is enabled
 	public function redirect(){
+		
+		global $param;
 
 		if ( api_is_student() && !api_get_setting('student_page_after_login') == '' ){
 			$redirect_url = html_entity_decode(api_get_setting('student_page_after_login'));