diff options
author | Ugnich Anton | 2013-11-02 03:25:18 +0700 |
---|---|---|
committer | Ugnich Anton | 2013-11-02 03:25:18 +0700 |
commit | 796c55d1591acc0188c0c269409d914f0dce12c5 (patch) | |
tree | 8bce0a47a1fc21bb71b2fa2a1887973ae47cac05 /src/java/com/juick/http/www/User.java | |
parent | 79a9182f4ad429fa43ad379028087d04d5abd126 (diff) |
Ad messages
Diffstat (limited to 'src/java/com/juick/http/www/User.java')
-rw-r--r-- | src/java/com/juick/http/www/User.java | 6 |
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 += "&show=" + paramShow; } |