[Notice] Undefined index: HTTP_ACCEPT_LANGUAGE

GET /

Line 44 in /home/server957920/ftp/www/elastolith.pl/mysite/code/HomePage.php

Source

35     $fields->addFieldsToTab('Root.Blok2', new HtmlEditorField('Block2','Text 1'));
36     $fields->addFieldsToTab('Root.Blok2', new LinkFormField('Block2Link','Link 1'));
37     return $fields;
38   }
39 
40 }
41 class HomePage_Controller extends Page_Controller {
42 
43   public function init() {
44     $lang = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
45     $is_pl = strpos(strtolower($lang), 'pl') !== FALSE;
46     if (!$is_pl) {
47       $link = 'diy-en-us/flexible-brick-slips';
48       if ($this->URLSegment != $link) {
49         $this->redirect($link);
50       }

Trace

Redirecting to http://elastolith.pl/diy-en-us/flexible-brick-slips... (output started on /home/server957920/ftp/www/elastolith.pl/framework/dev/DebugView.php, line 118)

";