diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-14 20:39:42 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-14 20:39:42 +0000 |
commit | 63d0ea9914c1cd1b6b91d2b47f0cb05491b076b9 (patch) | |
tree | 5f66904048bf52984758a3369470abdef22ea78f /modules | |
parent | 126a5e3c881f64c8fa37333626e08e619a209786 (diff) | |
download | brdo-63d0ea9914c1cd1b6b91d2b47f0cb05491b076b9.tar.gz brdo-63d0ea9914c1cd1b6b91d2b47f0cb05491b076b9.tar.bz2 |
- Patch #296485 by johnskulski, catch: fixed problem with comment threading.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment/comment.module | 2 |
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. |