summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-11-21 17:53:17 +0000
committerDries Buytaert <dries@buytaert.net>2009-11-21 17:53:17 +0000
commitc0d6f2ea5a3494fecad773fa0f78459171e819c7 (patch)
tree6d966e9f7188c04fcf13e8786303617de04fbe07
parentfc50814e7813d0b3ef20533a8c5b804d4eed2a64 (diff)
downloadbrdo-c0d6f2ea5a3494fecad773fa0f78459171e819c7.tar.gz
brdo-c0d6f2ea5a3494fecad773fa0f78459171e819c7.tar.bz2
- Patch #122098 by jeffschuler: small code clean up.
-rw-r--r--modules/comment/comment.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 5b10d35be..d119b8c8f 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1561,9 +1561,9 @@ function comment_num_new($nid, $timestamp = 0) {
$timestamp = ($timestamp > NODE_NEW_LIMIT ? $timestamp : NODE_NEW_LIMIT);
// Use the timestamp to retrieve the number of new comments.
- return db_query('SELECT COUNT(cid) FROM {comment} WHERE nid = :nid AND changed > :changed AND status = :status', array(
+ return db_query('SELECT COUNT(cid) FROM {comment} WHERE nid = :nid AND changed > :timestamp AND status = :status', array(
':nid' => $nid,
- ':changed' => $timestamp,
+ ':timestamp' => $timestamp,
':status' => COMMENT_PUBLISHED,
))->fetchField();
}