From 4742ba3549a72b431fc8cad8bd9019e5f59aed9a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 29 Mar 2003 16:30:40 +0000 Subject: - Fixed some SQL query directives. --- modules/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index 21218bf72..50f9aaeec 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -1264,7 +1264,7 @@ function comment_moderate() { foreach ($moderation as $cid => $vote) { if ($vote) { if (($vote == 'offline') && (user_access("administer comments"))) { - db_query("UPDATE comments SET status = 1 WHERE cid = '%s'", $cid); + db_query("UPDATE comments SET status = 1 WHERE cid = '%d'", $cid); watchdog("special", "comment: unpublished comment #". $cid); /* -- cgit v1.2.3