How to solve php Notice: Undefined index
<p>I am working on a php project which is already been developed. Now my work is to change some css files. So to do this I just downloaded all the files from the server along with the database. After all the setup I am getting an error when I am browsing the page is </p>

<pre><code>Notice: Undefined index: lang_selected in language.php on line 38
</code></pre>

<p>and the piece of code which is doing this stuff is </p>

<pre><code>if((!isset($_GET['q'])) &amp;&amp; ($_SESSION['lang_selected'] == "") &amp;&amp; ($ln == 1))
  {

    $language = $setshow['es_lang'];

   if($language=="France")
    $lan="french";

    else if($language=="Croatian")
    $lan="croatian";

    else if($language=="Dutch")
    $lan="dutch";

    else if($language=="German")
    $lan="german";

    else if($language=="Greek")
    $lan="greek";

    else if($language=="Italian")
    $lan="italian";

    else if($language=="Indonesian")
    $lan="indonesian";

    else if($language=="Russia")
    $lan="russian";

    else if($language=="Spain")
    $lan="spanish";

    else if($language=="Usa")
    $lan="english_v1";

    else if($language=="China")
    $lan="chinese";

    else if($language=="Japanese")
    $lan="japanese";

    else if($language=="Korea")
    $lan="korean";

    else if($language=="Saudia")
    $lan="arabic";

    else if($language=="Norwegian")
    $lan="norwegian";

    else if($language=="Malaysian")
    $lan="malaysian";

    else if($language=="Persian")
    $lan="persian";

    else if($language=="Portuguese")
    $lan="portuguese";

    else if($language=="Serbain")
    $lan="serbain";

    else if($language=="Swedish")
    $lan="swedish";

    else if($language=="Thai")
    $lan="thai";

    else if($language=="Vietnamese")
    $lan="vietnamese";

    else if($language=="Turkey")
    $lan="turkish";

    unset($_SESSION['lang']);
   $_SESSION['lang']=$lan;
   $_SESSION['language']=$language;

  }
</code></pre>

<p>So can some one kindly tell me why this piece of error is coming and how to solve this issue? Any help and suggestions will be appreciable. Thanks</p>
