Fix redirection to first log

This commit is contained in:
Jamie Cameron
2024-07-23 13:50:02 -07:00
parent c391830670
commit 779ebb4a63
3 changed files with 4 additions and 7 deletions

View File

@@ -1,4 +1,3 @@
skip_index=1
lines=100
others=1
reverse=1

View File

@@ -1,4 +1,4 @@
skip_index=Open log view on module load,1,1-Yes,0-No
skip_index=Redirect to first log file?,1,1-Yes,0-No
lines=Default number of lines to display,0,6
refresh=Seconds between log view refreshes,3,Never
others=Show logs from other modules,1,1-Yes,0-No

View File

@@ -143,11 +143,9 @@ if (!@acols) {
}
# If we jump directly to logs just redirect
if ($config{'skip_index'} == 1) {
if ($lnks[0]) {
if ($config{'skip_index'} == 1 && $lnks[0]) {
&redirect($lnks[0]);
exit;
}
return;
}
# Print the header