diff --git a/html/user/forum_forum.php b/html/user/forum_forum.php
index bab148e50f..48b40c7fbc 100644
--- a/html/user/forum_forum.php
+++ b/html/user/forum_forum.php
@@ -100,7 +100,7 @@ function forum_page($forum, $user, $msg=null) {
switch (user_can_create_thread($user, $forum)) {
case 'yes':
show_button(
- "forum_post.php?id=$id", tra("New thread"),
+ "forum_post.php?id=$forum->id", tra("New thread"),
tra("Add a new thread to this forum")
);
break;