Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
0a845cd4
Commit
0a845cd4
authored
Dec 10, 2004
by
deuce
Browse files
Never allow 0 total pages.
parent
a3d64535
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
web/root/msgs/msgs.ssjs
web/root/msgs/msgs.ssjs
+2
-0
No files found.
web/root/msgs/msgs.ssjs
View file @
0a845cd4
...
...
@@ -28,6 +28,8 @@ else {
template
.
can_delete
=
msg_area
.
sub
[
sub
].
is_operator
;
}
var
total_pages
=
Math
.
floor
(
msgarray
.
length
/
max_messages
+
(
msgarray
.
length
%
max_messages
?
1
:
0
));
if
(
total_pages
==
0
)
total_pages
=
1
;
var
firstpage
=
0
;
var
lastpage
=
firstpage
+
max_pages
-
1
;
if
(
lastpage
>=
total_pages
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment