Эх сурвалжийг харах

Correction erreur 500 si page 0 appelée

Sangfroid 5 өдөр өмнө
parent
commit
45cdad7b14

+ 3 - 0
src/Dto/FiltersDTO.php

@@ -28,6 +28,9 @@ class FiltersDTO
         public int $page = 1
     )
     {
+        if ($this->page <= 0) {
+            $this->page = 1;
+        }
         $this->note = $this->note === '' ? null : (int)$this->note;
     }