ErrorException [ Notice ]: Undefined index: HTTP_ACCEPT_LANGUAGE

MODPATH/hana/classes/service/hana/route.php [ 195 ]

190 
191     public function get_last_language_id()
192     {
193         if($llid=Cookie::get("last_language_id")) return $llid;
194         else
195         $llid = array_search($_SERVER["HTTP_ACCEPT_LANGUAGE"], $this->languages_map);
196 
197         if($llid) return $llid; else return 1;
198     }
199 
200     public function get_selected_language_code() {
  1. MODPATH/hana/classes/service/hana/route.php [ 195 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/controller/page.php [ 178 ] » Service_Hana_Route->get_last_language_id()

  3. {PHP internal call} » Controller_Page->action_page_navigation(arguments)

  4. SYSPATH/classes/kohana/request.php [ 1112 ] » ReflectionMethod->invokeArgs(arguments)

  5. APPPATH/classes/controller/page.php [ 78 ] » Kohana_Request->execute()

  6. {PHP internal call} » Controller_Page->action_index(arguments)

  7. SYSPATH/classes/kohana/request.php [ 1112 ] » ReflectionMethod->invokeArgs(arguments)

  8. APPPATH/classes/controller/site.php [ 47 ] » Kohana_Request->execute()

  9. {PHP internal call} » Controller_Site->action_index(arguments)

  10. SYSPATH/classes/kohana/request.php [ 1112 ] » ReflectionMethod->invokeArgs(arguments)

  11. APPPATH/bootstrap.php [ 141 ] » Kohana_Request->execute()

  12. DOCROOT/index.php [ 103 ] » require(arguments)

Environment