title: Google crawl error with HTTP_ACCEPT_LANGUAGE
body: <p>In my Codeigniter app I use <code>$_SERVER['HTTP_ACCEPT_LANGUAGE']</code> to determine the users browser language to set the app language based on that, like that:</p>
  
  <pre><code>public function __construct()
  {
  parent::__construct();
  
  /* set session language if not set. "hu" if browser language "hu", else "en" */
      if(!($this-&gt;session-&gt;userdata("lang")))
          {
          $browserlang = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,2);
          if ($browserlang == "hu")
              {
              $this-&gt;config-&gt;set_item("language", "hu");
              $this-&gt;session-&gt;set_userdata("lang", "hu");
              $this-&gt;lang-&gt;load("bh_hu", "hungarian");
      }
           else
              {
              $this-&gt;config-&gt;set_item("language", "en");
              $this-&gt;session-&gt;set_userdata("lang", "en");
              $this-&gt;lang-&gt;load("bh_en", "english");
              }
          }
       else
          {
          switch ($this-&gt;session-&gt;userdata("lang"))
               {
               case "hu": $this-&gt;lang-&gt;load("bh_hu", "hungarian"); break;
               case "en": $this-&gt;lang-&gt;load("bh_en", "english"); break;
               }
          }
  
       ....
    }
  </code></pre>
  
  <p>Everything's working fine, but as the google crawler does not send any <code>HTTP_ACCEPT_LANGUAGE</code>, it returns a php error Undefined index: <code>HTTP_ACCEPT_LANGUAGE</code> when crawling all my pages.</p>
  
  <p>This is really nasty, because the php error even fills up my entire google search snippet. </p>
  
  <p>Is there a way to just let the google bot ignore the <code>HTTP_ACCEPT_LANGUAGE</code> action?</p>
  
  <p>Thanks in advance!</p>