diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-03-29 16:30:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-03-29 16:30:40 +0000 |
commit | 4742ba3549a72b431fc8cad8bd9019e5f59aed9a (patch) | |
tree | b746bb0a9f08fa50461fce05176a53b810ade369 /modules/node.module | |
parent | 6857ab3dbbe0d90325d3b07b0f0c594377b172d8 (diff) | |
download | brdo-4742ba3549a72b431fc8cad8bd9019e5f59aed9a.tar.gz brdo-4742ba3549a72b431fc8cad8bd9019e5f59aed9a.tar.bz2 |
- Fixed some SQL query directives.
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node.module b/modules/node.module index f17436db9..a0950a0bc 100644 --- a/modules/node.module +++ b/modules/node.module @@ -472,7 +472,7 @@ function node_filter_link($text) { function node_comment_mode($nid) { static $comment_mode; if (!isset($comment_mode[$nid])) { - $comment_mode[$nid] = db_result(db_query("SELECT comment FROM node WHERE nid = '%s'", $nid)); + $comment_mode[$nid] = db_result(db_query("SELECT comment FROM node WHERE nid = '%d'", $nid)); } return $comment_mode[$nid]; } |