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) {