avoir une valeur par défaut pour indiscore

This commit is contained in:
Michael RICOIS 2010-01-15 17:46:47 +00:00
parent e12c8bbbe2
commit b96ae6aef5
3 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ if ($etab['NbBilansScore']>0 && $etab['Bilans'][0]['Millesime']>=$millesimeMax)
break; break;
case '100': case '100':
default: default:
$maxIndiscore = $_SESSION['tabInfo']['typeScore']; $maxIndiscore = empty($_SESSION['tabInfo']['typeScore'])? '100' : $_SESSION['tabInfo']['typeScore'];
$indiscore = $etab['Indiscore']; $indiscore = $etab['Indiscore'];
break; break;
} }

View File

@ -1842,7 +1842,7 @@ if ($etab['NbBilansScore']>0 && $etab['Bilans'][0]['Millesime']>=$millesimeMax)
break; break;
case '100': case '100':
default: default:
$maxIndiscore = $_SESSION['tabInfo']['typeScore']; $maxIndiscore = empty($_SESSION['tabInfo']['typeScore'])? '100' : $_SESSION['tabInfo']['typeScore'];
$indiscore = $etab['Indiscore']; $indiscore = $etab['Indiscore'];
break; break;
} }

View File

@ -695,7 +695,7 @@ switch($_SESSION['tabInfo']['typeScore'])
break; break;
case '100': case '100':
default: default:
$maxIndiscore = $_SESSION['tabInfo']['typeScore']; $maxIndiscore = empty($_SESSION['tabInfo']['typeScore'])? '100' : $_SESSION['tabInfo']['typeScore'];
$indiscore = $etab['Indiscore']; $indiscore = $etab['Indiscore'];
break; break;
} }