[Notice] Undefined index: HTTP_ACCEPT_LANGUAGE

GET /kontakt-oss/

Line 89 in /var/www/silverstripe/lkinnlandet.no/airliner/code/ContactForm.php

Source

80 			$countrycode = substr($num, 0, 3);
81 			$num = substr($num, 3);
82 		}
83 
84 		if (!$countrycode && "+" == substr($force_countrycode, 0, 1)) {
85 			$countrycode = $force_countrycode;
86 		}
87 
88 		$ismobile = true;
89 		$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
90 		if ('no' == $lang) {
91 			$ismobile = false;
92 			$mobilerange = array('4', '8', '9');
93 			foreach ($mobilerange as $r) {
94 				if (substr($num, 0, strlen($r)) == $r) {
95 					$ismobile = true;

Trace

Kontakt oss » Lærlingekompaniet Innlandet