fix undefined variable

This commit is contained in:
gnieark 2015-12-08 23:06:04 +01:00
parent 9164239c9a
commit 3fa63ac871

View File

@ -176,14 +176,17 @@ if (isset($_POST['xd_check'])){
<nav id="languages"><a href="<?php echo $currentArena; ?>-fr">fr</a>&nbsp;<a href="<?php echo $currentArena; ?>-en">en</a></nav> <nav id="languages"><a href="<?php echo $currentArena; ?>-fr">fr</a>&nbsp;<a href="<?php echo $currentArena; ?>-en">en</a></nav>
<nav id="menus"><a href="/"<?php if(($currentArena == "") && (!isset($_GET['doc']))) echo ' class="selected"'; ?>><?php echo $lang['HOME']; ?></a> <nav id="menus"><a href="/"<?php if(($currentArena == "") && (!isset($_GET['doc']))) echo ' class="selected"'; ?>><?php echo $lang['HOME']; ?></a>
<?php <?php
foreach($arenas as $arena){ if(!isset($currentArena)){
if( $arena['id'] == $currentArena){ $currentArena="";
$class="selected"; }
}else{ foreach($arenas as $arena){
$class=""; if( $arena['id'] == $currentArena){
} $class="selected";
echo '<a href="'.$arena['url'].'" class="'.$class.'">'.$arena['title'].'</a>'; }else{
$class="";
} }
echo '<a href="'.$arena['url'].'" class="'.$class.'">'.$arena['title'].'</a>';
}
?></nav> ?></nav>
</header> </header>
<section> <section>