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. MODPATH/hana/classes/service/hana/page.php [ 68 ] » Service_Hana_Route->get_last_language_id()

  3. APPPATH/classes/controller/page.php [ 186 ] » Service_Hana_Page->get_pages_structure(arguments)

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

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

  6. APPPATH/classes/controller/reference.php [ 167 ] » Kohana_Request->execute()

  7. {PHP internal call} » Controller_Reference->action_detail(arguments)

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

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

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

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

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

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

Environment