|
|
@ -80,7 +80,7 @@ class MdlScientifique extends MdlBase{
|
|
|
|
public function getHistoriqueParPage(string $pseudoJoueur,int $page) {
|
|
|
|
public function getHistoriqueParPage(string $pseudoJoueur,int $page) {
|
|
|
|
$nbElemParPage = 20;
|
|
|
|
$nbElemParPage = 20;
|
|
|
|
$pageMax = ceil($this->gw->getNbScientifiqueHistorique($pseudoJoueur)/$nbElemParPage);
|
|
|
|
$pageMax = ceil($this->gw->getNbScientifiqueHistorique($pseudoJoueur)/$nbElemParPage);
|
|
|
|
print($pageMax);
|
|
|
|
|
|
|
|
if ($page <= 0) {
|
|
|
|
if ($page <= 0) {
|
|
|
|
$page = 1;
|
|
|
|
$page = 1;
|
|
|
|
} elseif ($page > $pageMax) {
|
|
|
|
} elseif ($page > $pageMax) {
|
|
|
|