This commit is contained in:
parent
ee5d515ac1
commit
8c783d780c
2 changed files with 620 additions and 611 deletions
1229
composer.lock
generated
1229
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -44,7 +44,7 @@ final class FoodOrderController extends AbstractController
|
||||||
$prevPage = $page - 1;
|
$prevPage = $page - 1;
|
||||||
$itemsPerPage = 10;
|
$itemsPerPage = 10;
|
||||||
$count = $foodOrderRepository->count();
|
$count = $foodOrderRepository->count();
|
||||||
if($count < $page * $itemsPerPage) {
|
if ($count < $page * $itemsPerPage) {
|
||||||
$nextPage = $page;
|
$nextPage = $page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue