diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-10-17 08:45:51 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-10-17 08:45:51 +0000 |
commit | ea38bae2a70c6ed0175ddff65bb41f9634c0e87b (patch) | |
tree | 0ed7e8186f49b55138ea43b94bbda55d5db515d5 /modules/comment/comment.module | |
parent | b87692a90186aeb73b74a635756d8aa691f5ef3e (diff) | |
download | brdo-ea38bae2a70c6ed0175ddff65bb41f9634c0e87b.tar.gz brdo-ea38bae2a70c6ed0175ddff65bb41f9634c0e87b.tar.bz2 |
#84443 by Shakur. Do not depend on a url argument being defined.
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 f9f37912f..95570f67f 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; |