diff --git a/modules/comment/comment.module b/modules/comment/comment.module index f9f37912fdf6a3de26fdc53573938fe44516e5ed..95570f67f35c2f933030942d438eafc3b7747f48 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -942,7 +942,7 @@ function comment_render($node, $cid = 0) { /** * Menu callback; delete a comment. */ -function comment_delete($cid) { +function comment_delete($cid = NULL) { $comment = db_fetch_object(db_query('SELECT c.*, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE c.cid = %d', $cid)); $comment->name = $comment->uid ? $comment->registered_name : $comment->name;