瀏覽代碼

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>";
 		}