summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-10-14 20:39:42 +0000
committerDries Buytaert <dries@buytaert.net>2008-10-14 20:39:42 +0000
commit63d0ea9914c1cd1b6b91d2b47f0cb05491b076b9 (patch)
tree5f66904048bf52984758a3369470abdef22ea78f /modules/comment/comment.module
parent126a5e3c881f64c8fa37333626e08e619a209786 (diff)
downloadbrdo-63d0ea9914c1cd1b6b91d2b47f0cb05491b076b9.tar.gz
brdo-63d0ea9914c1cd1b6b91d2b47f0cb05491b076b9.tar.bz2
- Patch #296485 by johnskulski, catch: fixed problem with comment threading.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index db663aa87..341767aa3 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -719,7 +719,7 @@ function comment_save($edit) {
// Strip the "/" from the end of the parent thread.
$parent->thread = (string) rtrim((string) $parent->thread, '/');
// Get the max value in *this* thread.
- $max = db_query("SELECT MAX(thread) FROM {comments} WHERE thread LIKE :thread AND nid = :nid", array(':thread' => $parent->thread .'%', ':nid' => $edit['nid']))->fetchField();
+ $max = db_query("SELECT MAX(thread) FROM {comments} WHERE thread LIKE :thread AND nid = :nid", array(':thread' => $parent->thread .'.%', ':nid' => $edit['nid']))->fetchField();
if ($max == '') {
// First child of this parent.