mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-07 15:58:19 +01:00
Don't show an error message in app:show-log when no logs are created yet.
This commit is contained in:
@@ -90,7 +90,7 @@ class ShowEventLogCommand extends Command
|
||||
$total_count = $this->repo->count([]);
|
||||
$max_page = (int) ceil($total_count / $limit);
|
||||
|
||||
if ($page > $max_page) {
|
||||
if ($page > $max_page && $max_page > 0) {
|
||||
$io->error("There is no page ${page}! The maximum page is ${max_page}.");
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user