From d4a43f05ebb104c1b7e68947d078d679aaee03c7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 15 Jun 2009 03:39:27 +0000 Subject: [PATCH] - web RPC: tweak to forum_get_data.php svn path=/trunk/boinc/; revision=18415 --- checkin_notes | 6 ++++++ html/user/forum_get_data.php | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/checkin_notes b/checkin_notes index a80fe3a150..18f6ac83f0 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5660,3 +5660,9 @@ Rom 14 June 2009 acct_mgr_url.xml win_build/installerv2/redist/progress/ acct_mgr_url.xml + +David 14 June 2009 + - web RPC: tweak to forum_get_data.php + + html/user/ + forum_get_data.php diff --git a/html/user/forum_get_data.php b/html/user/forum_get_data.php index 22f3f0cf56..5b01d16e1b 100644 --- a/html/user/forum_get_data.php +++ b/html/user/forum_get_data.php @@ -38,13 +38,17 @@ if (!$user) { if ($method == "user_posts") { $count = get_int("count", true); - if (!$count || $count <= 0 || $count > 50) { $count = 10; } + if (!$count || $count <= 0 || $count > 50) { + $count = 10; + } $length = get_int("contentlength", true); - if (($length == null) || ($length <= 0)) { $length = 0; } + if (($length == null) || ($length <= 0)) { + $length = 0; + } $posts = BoincPost::enum("user=$userid ORDER BY timestamp DESC LIMIT $count"); - $count = count($posts); + $realcount = BoincPost::count("user=$userid"); echo "\n"; - echo "$count\n"; + echo "$realcount\n"; echo "\n"; foreach ($posts as $post) {