Skip to content

Commit 6e23d0b

Browse files
committed
Fix page 2 of viewing logs being skipped causing last page to also not show
1 parent ead7deb commit 6e23d0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/app/www/public/functions/logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function getLog($logfile, $page = 1, $app = false)
124124
global $starr, $shell;
125125

126126
$page = $page <= 1 ? 1 : $page;
127-
$start = $page == 1 ? 0 : $page * LOG_LINES_PER_PAGE;
127+
$start = $page == 1 ? 0 : $page * LOG_LINES_PER_PAGE - LOG_LINES_PER_PAGE;
128128
$end = $start + LOG_LINES_PER_PAGE;
129129

130130
$starr = $starr ?:new Starr();

0 commit comments

Comments
 (0)