From ea38bae2a70c6ed0175ddff65bb41f9634c0e87b Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Tue, 17 Oct 2006 08:45:51 +0000 Subject: [PATCH] #84443 by Shakur. Do not depend on a url argument being defined. --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/comment/comment.module b/modules/comment/comment.module index f9f37912fdf..95570f67f35 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;