ErrorException [ Notice ]: Undefined index: HTTP_REFERER

APPPATH/classes/Controller/ResponsiveTemplate.php [ 11 ]

 6 	
 7 	public function before()
 8 	{
 9 		if(ISSET($_GET['lang']) && $_GET['lang']!=''){
10 			MySession::alteraLinguagem($_GET['lang']);
11 			echo '<script>window.location = "'.$_SERVER["HTTP_REFERER"].'";</script>';
12 		}
13 		parent::before();
14 		if ($this->auto_render)
15 		{
16 			$this->template->title   = '';
  1. APPPATH/classes/Controller/ResponsiveTemplate.php [ 11 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Controller/Treinador/PublicTemplate.php [ 7 ] » Controller_ResponsiveTemplate->before()

  3. SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Treinador_PublicTemplate->before()

  4. {PHP internal call} » Kohana_Controller->execute()

  5. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  6. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  7. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute(arguments)

  8. DOCROOT/index.php [ 128 ] » Kohana_Request->execute()

Environment