Consider the following php code used for HTML output:
echo "<div id='logo2'>
<a href='if(checkLanguage()) index.php; else index.php?lang=en;'>
<img src='img/logotext1.png' width='".$logoWidth2."'height='".$logoHeight2."'
border='0';/>
</a>
</div>";
As you see the if and else conditions in the a tag aren't working properly because of some concatenation mistake. Any help making the hyperlinks work is greatly appreciated.