From 3f10b6e8f5eae72a23da50582db139097832e9ff Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 28 Jul 2003 22:47:48 +0000 Subject: [PATCH] Fixed a bug in which the parent post of a new post was not being stored in the DB. svn path=/trunk/boinc/; revision=1835 --- html/forum/forum.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/forum/forum.inc b/html/forum/forum.inc index af40a0bdf4..1a200b1d06 100644 --- a/html/forum/forum.inc +++ b/html/forum/forum.inc @@ -123,7 +123,7 @@ class Thread { return $thread->id; } - function reply($user = -1, $content = "", $parent_post = NULL) { + function reply($user = -1, $content = "", $parent_post=NULL) { $content = addslashes(htmlentities($content)); $post = new Post(); @@ -165,7 +165,7 @@ class Post { } function insert() { - $sql = "INSERT INTO post (thread, user, timestamp, content) VALUES (".$this->thread.", ".$this->user.", UNIX_TIMESTAMP(), '".$this->content."')"; + $sql = "INSERT INTO post (thread, user, timestamp, content, parent_post) VALUES (".$this->thread.", ".$this->user.", UNIX_TIMESTAMP(), '".$this->content."', ".$this->parent_post.")"; $result = sql_query($sql); if (!$result) return false;