Skip to content
Snippets Groups Projects
Commit ea38bae2 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#84443 by Shakur. Do not depend on a url argument being defined.

parent b87692a9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment