fix undefined variable
This commit is contained in:
parent
3fa63ac871
commit
447547ff00
|
@ -153,6 +153,10 @@ if (isset($_POST['xd_check'])){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!isset($currentArena)){
|
||||||
|
$currentArena="";
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
|
@ -176,9 +180,7 @@ if (isset($_POST['xd_check'])){
|
||||||
<nav id="languages"><a href="<?php echo $currentArena; ?>-fr">fr</a> <a href="<?php echo $currentArena; ?>-en">en</a></nav>
|
<nav id="languages"><a href="<?php echo $currentArena; ?>-fr">fr</a> <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
|
||||||
if(!isset($currentArena)){
|
|
||||||
$currentArena="";
|
|
||||||
}
|
|
||||||
foreach($arenas as $arena){
|
foreach($arenas as $arena){
|
||||||
if( $arena['id'] == $currentArena){
|
if( $arena['id'] == $currentArena){
|
||||||
$class="selected";
|
$class="selected";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user