aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/User.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-11-02 03:25:18 +0700
committerGravatar Ugnich Anton2013-11-02 03:25:18 +0700
commit796c55d1591acc0188c0c269409d914f0dce12c5 (patch)
tree8bce0a47a1fc21bb71b2fa2a1887973ae47cac05 /src/java/com/juick/http/www/User.java
parent79a9182f4ad429fa43ad379028087d04d5abd126 (diff)
Ad messages
Diffstat (limited to 'src/java/com/juick/http/www/User.java')
-rw-r--r--src/java/com/juick/http/www/User.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/com/juick/http/www/User.java b/src/java/com/juick/http/www/User.java
index 64675044..5de54341 100644
--- a/src/java/com/juick/http/www/User.java
+++ b/src/java/com/juick/http/www/User.java
@@ -115,12 +115,12 @@ public class User {
out.println("<div id=\"content\">");
out.println("<ul>");
if (mids.size() > 0) {
- PageTemplates.printMessages(out, sql, user, mids, visitor, locale, visitor == null ? 4 : 5);
+ PageTemplates.printMessages(out, sql, user, mids, visitor, locale, visitor == null ? 4 : 5, 0);
}
out.println("</ul>");
- if (mids.size() == 20) {
- String nextpage = "?before=" + mids.get(19);
+ if (mids.size() >= 20) {
+ String nextpage = "?before=" + mids.get(mids.size() - 1);
if (paramShow != null) {
nextpage += "&amp;show=" + paramShow;
}