소스 검색

Ajout d'un zero dans les choix impossibles à avoir

Guichen 4 년 전
부모
커밋
03e291626d
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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>";
 		}