diff --git a/mod/forum/lib.php b/mod/forum/lib.php
index affd53e6bbc..a1771c23e3f 100644
--- a/mod/forum/lib.php
+++ b/mod/forum/lib.php
@@ -1114,12 +1114,7 @@ function forum_make_mail_post(&$post, $user, $touser, $course,
$age = time() - $post->created;
if ($ownpost) {
- if (!record_exists("forum_posts", "parent", $post->id)) {
- $output .= "wwwroot/mod/forum/post.php?delete=$post->id\">".get_string("delete", "forum")."";
- if ($reply) {
- $output .= ' | ';
- }
- }
+ $output .= "wwwroot/mod/forum/post.php?delete=$post->id\">".get_string("delete", "forum")."";
if ($reply) {
$output .= "wwwroot/mod/forum/post.php?reply=$post->id\">".get_string("replyforum", "forum")."";
}
@@ -1257,13 +1252,11 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
}
if ($ownpost or $isteacher) {
- if (!record_exists("forum_posts", "parent", $post->id)) {
- echo "wwwroot/mod/forum/post.php?delete=$post->id\">$strdelete";
- if ($reply) {
- echo " | ";
- } else {
- echo " ";
- }
+ echo "wwwroot/mod/forum/post.php?delete=$post->id\">$strdelete";
+ if ($reply) {
+ echo " | ";
+ } else {
+ echo " ";
}
}
if ($reply) {