Ver Fonte

Ajout d'un zero dans les choix impossibles à avoir

Guichen há 4 anos atrás
pai
commit
03e291626d
2 ficheiros alterados com 4 adições e 0 exclusões
  1. 2 0
      _oldFiles/index.php
  2. 2 0
      apiTableauFromClassement.php

+ 2 - 0
_oldFiles/index.php

@@ -133,6 +133,8 @@ $isClassementValid = isset($_GET["classement"]) && (int) $_GET["classement"] !==
 			$html .= "\">";
 			if ($nbPossibleAnneePropose > 0) {
 				$html .= $nbPossibleAnneePropose;
+			} else if ($nbPossibleAnneePropose === 0) {
+				$html .= "0";
 			}
 			$html .= "</td>";
 		}

+ 2 - 0
apiTableauFromClassement.php

@@ -205,6 +205,8 @@ EOF;
 			$html .= "\">";
 			if ($nbPossibleAnneePropose > 0) {
 				$html .= $nbPossibleAnneePropose;
+			} else if ($nbPossibleAnneePropose === 0) {
+				$html .= "0";
 			}
 			$html .= "</td>";
 		}