Skip to content

Commit 2ce1d64

Browse files
committed
simplify
1 parent b7edc3d commit 2ce1d64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pages/rmpatch.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
$success_message = "Patch deleted";
1919
} else {
2020
$name = $patch->getSubmitter()->shortName();
21-
$link = dolink('rmpatch', "Yes, I'm sure",
22-
['id' => (int)$_GET['id'], 'sure' => 1]);
21+
$link = dolink('rmpatch', "Yes, I'm sure", ['id' => $patch->id, 'sure' => 1]);
2322
$confirm["Are you sure you want to delete patch $patch->id of $name?"]
2423
= $link;
2524
}

0 commit comments

Comments
 (0)