diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-01-17 19:00:03 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-01-17 19:00:03 +0000 |
commit | e7edb55d63f78559972646af07107193c8c26a52 (patch) | |
tree | 22ad499230298328f20b8df6afe1f7e5fea590aa /modules/comment/comment.module | |
parent | a1579a3aee36faee9bd78111a3de0997e59b8f2e (diff) | |
download | brdo-e7edb55d63f78559972646af07107193c8c26a52.tar.gz brdo-e7edb55d63f78559972646af07107193c8c26a52.tar.bz2 |
- The real code fixes ;)
Diffstat (limited to 'modules/comment/comment.module')
-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 521cf8b08..789f7c27f 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -157,7 +157,7 @@ function comment_block($op = 'list', $delta = 0) { return $blocks; } else if ($op == 'view' && user_access('access comments')) { - $result = db_query_range(node_rewrite_sql('SELECT c.nid,c.* FROM {comments} c WHERE status = 0 ORDER BY timestamp DESC', 'c'), 0, 10); + $result = db_query_range(node_rewrite_sql('SELECT c.nid, c.* FROM {comments} c WHERE status = 0 ORDER BY timestamp DESC', 'c'), 0, 10); $items = array(); while ($comment = db_fetch_object($result)) { $items[] = l($comment->subject, 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid) .'<br />'. t('%time ago', array('%time' => format_interval(time() - $comment->timestamp))); |